Remove conditional and redundant step

This commit is contained in:
Daniel 2024-05-31 13:07:11 -05:00
parent 4dfed825fd
commit 986a191c5d

View File

@ -16,14 +16,7 @@ jobs:
- name: Download reference file
run: curl -o reference_file.txt https://hub.allspice.io/AllSpice-demos/Altium-archimajor-3d-printer-driver-demo/raw/branch/main/Archimajor.RUL
- name: Compare files
id: diff
run: |
echo "Comparing golden reference file against Archimajor.RUL"
diff -u reference_file.txt Archimajor.RUL || true
- name: Save diff to file
if: steps.diff.outcome != 'success'
- name: Compare files'
run: |
echo "Saving diff to file"
diff -u reference_file.txt Archimajor.RUL > diff.txt
@ -31,6 +24,9 @@ jobs:
- name: Show file contents
run: cat Archimajor.RUL
- name: Show diff contents 🔍
run: cat Archimajor.RUL
- name: Upload diff.txt
if: steps.diff.outcome != 'success'
uses: actions/upload-artifact@v2