Skip to content

Commit

Permalink
Fix GHA PR action
Browse files Browse the repository at this point in the history
  • Loading branch information
VIPQualityPost committed Mar 1, 2024
1 parent 353bec1 commit a380282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ayab-esp32-design.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ jobs:
kicad-cli sch erc -o ${workflow_project_dir}/outputs/erc_errors.json --format json --severity-error --exit-code-violations ${workflow_project_dir}/${kicad_project_name}.kicad_sch
kicad-cli pcb drc -o ${workflow_project_dir}/outputs/drc_errors.json --format json --severity-error --exit-code-violations ${workflow_project_dir}/${kicad_project_name}.kicad_pcb
- name: Export design file PDFs
run: |
kicad-cli sch export pdf -o ${workflow_project_dir}/outputs/${kicad_project_name}-sch.pdf ${workflow_project_dir}/${kicad_project_name}.kicad_sch
kicad-cli pcb export pdf -o ${workflow_project_dir}/outputs/${kicad_project_name}-pcb-front.pdf -l "F.Cu,F.Mask,F.Silkscreen" ${workflow_project_dir}/${kicad_project_name}.kicad_pcb
kicad-cli pcb export pdf -o ${workflow_project_dir}/outputs/${kicad_project_name}-pcb-back.pdf --erd --ev --mirror -l "B.Cu,B.Mask,B.Silkscreen" ${workflow_project_dir}/${kicad_project_name}.kicad_pcb
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: always()
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ayab-esp32-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "AYAB Github Action"
git switch -c documentation
git add ${workflow_project_dir}/pdf/*
git fetch
git checkout documentation
git add ${workflow_project_dir}/pdf/*.pdf
git commit -m "Add design file PDFs to repo [skip ci]"
gh pr create --title "Add design file PDFs to repo" --body "Automated PR from GHA"
gh pr create --head documentation --base main --title "Add design file PDFs to repo" --body "Automated PR from GHA"
- name: Archive artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a380282

Please sign in to comment.