Skip to content

Commit

Permalink
Update pdf-diff.yml
Browse files Browse the repository at this point in the history
hard coding in paths because the other way broke it
  • Loading branch information
LeftistTachyon authored Aug 14, 2024
1 parent 023798d commit 8f51041
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pdf-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
with:
kicad_sch: target/Chassis/Chassis.kicad_sch
sch_pdf: true
sch_pdf_file: ${{ github.workspace }}/target_Chassis.pdf
sch_pdf_file: target_Chassis.pdf

- name: Upload target schematic PDF
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && steps.target.conclusion == 'success' }}
with:
name: target_Chassis.pdf
path: ${{ github.workspace }}/target_Chassis.pdf
path: target/Chassis/target_Chassis.pdf

- name: Export source branch schematic PDF
id: source
Expand All @@ -53,28 +53,28 @@ jobs:
with:
kicad_sch: source/Chassis/Chassis.kicad_sch
sch_pdf: true
sch_pdf_file: ${{ github.workspace }}/source_Chassis.pdf
sch_pdf_file: source/Chassis/source_Chassis.pdf

- name: Upload source schematic PDF
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && steps.source.conclusion == 'success' }}
with:
name: source_Chassis.pdf
path: ${{ github.workspace }}/source_Chassis.pdf
path: source/Chassis/source_Chassis.pdf

- name: Compare PDFs
id: compare
uses: nowsprinting/diff-pdf-action@v1
if: ${{ !cancelled() && !failure() }}
with:
file1: ${{ github.workspace }}/source_Chassis.pdf
file2: ${{ github.workspace }}/target_Chassis.pdf
file1: source/Chassis/source_Chassis.pdf
file2: target/Chassis/target_Chassis.pdf
options: -s -m --output-diff=diff.pdf --dpi=100
supress-diff-error: true

- name: Upload diff PDF
uses: actions/upload-artifact@v4
if: ${{ !cancelled() && steps.compare.conclusion == 'success' }}
with:
name: ${{ github.workspace }}/diff.pdf
path: ${{ github.workspace }}/diff.pdf
name: diff.pdf
path: diff.pdf

0 comments on commit 8f51041

Please sign in to comment.