Skip to content

Commit

Permalink
Test for if panel file exhists
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimos committed Aug 17, 2024
1 parent be7766e commit 338cdd0
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# Use current kicad repo commit that triggered this build.
# Use current repo commit that triggered this build.
- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -22,29 +22,15 @@ jobs:
ref: 1-add-penalization-to-build

# Build datapack
- uses: INTI-CMNB/KiBot@v1.7.0
- name: Build Datapack
uses: INTI-CMNB/KiBot@v1.7.0
with:
config: kibot-config/build.kibot.yaml
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
# log: log/log.log
# verbose: 2

# - name: Commit files
# if: ${{ hashFiles('assets/') != '' }}
# run: |
# git config ...

# Build panel
- uses: INTI-CMNB/KiBot@v1.7.0
with:
config: kibot-config/build.panel.yaml
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
# log: log/log.log
# verbose: 2

# Update artifacts
- name: Upload Results
Expand All @@ -61,3 +47,22 @@ jobs:
# name: kibot-logs
# path: logs
# if-no-files-found: error


# - name: Commit files
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v3
with:
files: "panelization.yaml"

- name: File exists
if: steps.check_files.outputs.files_exists == 'true'
uses: INTI-CMNB/KiBot@v1.7.0
with:
config: kibot-config/build.panel.yaml
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
# log: log/log.log
# verbose: 2

0 comments on commit 338cdd0

Please sign in to comment.