Update production.yml #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Diff | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ghcr.io/inti-cmnb/kicad8_auto_full:latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
path: modified | |
submodules: recursive | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: original | |
submodules: recursive | |
- name: Create PCB diff | |
run: | | |
kicad-diff.py original/project/ZSWatch.kicad_sch modified/project/ZSWatch.kicad_sch --all_pages --output_dir diff-schematics --no_reader --keep_pngs | |
kicad-diff.py original/project/ZSWatch.kicad_pcb modified/project/ZSWatch.kicad_pcb --all_pages --output_dir diff-layout --no_reader --keep_pngs | |
- name: Upload Layout Diff | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "diff-layout-master-${{ github.ref_name }}" | |
path: diff-layout | |
if-no-files-found: ignore | |
- name: Upload Schematics Diff | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "diff-schematics-master-${{ github.ref_name }}" | |
path: diff-schematics | |
if-no-files-found: ignore |