ds dl
This commit is contained in:
@@ -1,4 +1,30 @@
|
||||
name: "KiBot PCB Generation"
|
||||
- name: Download component datasheets
|
||||
if: steps.config_check.outputs.found == 'true'
|
||||
continue-on-error: true
|
||||
run: |
|
||||
echo "Datasheets will be downloaded by KiBot's download_datasheets output"
|
||||
echo "They will be saved in Generated/BoM/Datasheets/"
|
||||
|
||||
# Create a README for the datasheets folder if KiBot creates it
|
||||
if [ -d "${GITHUB_WORKSPACE}/Generated/BoM/Datasheets" ]; then
|
||||
cat > "${GITHUB_WORKSPACE}/Generated/BoM/Datasheets/README.md" << EOF
|
||||
# Component Datasheets
|
||||
|
||||
This folder contains downloaded datasheets for components used in the project.
|
||||
|
||||
- Datasheets are downloaded automatically from URLs in the schematic
|
||||
- Files are named based on the component reference and original filename
|
||||
- Only unique datasheets are downloaded (duplicates are linked)
|
||||
|
||||
Generated on: $(date)
|
||||
Project: ${{ steps.find_project.outputs.project_name }}
|
||||
EOF
|
||||
|
||||
echo "Datasheet folder contents:"
|
||||
ls -la "${GITHUB_WORKSPACE}/Generated/BoM/Datasheets/" || true
|
||||
else
|
||||
echo "Note: Datasheet folder not created yet - will be created by KiBot"
|
||||
finame: "KiBot PCB Generation"
|
||||
|
||||
# Controls when the action will run
|
||||
on:
|
||||
@@ -191,6 +217,13 @@ jobs:
|
||||
name: BOM-${{ steps.layers.outputs.layers }}layer
|
||||
path: Generated/BoM
|
||||
|
||||
- name: Retrieve results - Datasheets
|
||||
if: steps.config_check.outputs.found == 'true'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Datasheets
|
||||
path: Generated/Datasheets
|
||||
|
||||
- name: Retrieve results - 3D Model
|
||||
if: steps.config_check.outputs.found == 'true'
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user