mirror of
https://staging.allspice.dev/AllSpice-Demos/Actions-demo.git
synced 2025-04-23 17:03:42 +00:00
Remove conditional and redundant step
This commit is contained in:
parent
4dfed825fd
commit
986a191c5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user