build workflow should upload logfiles for success() or failure() of previous jobs, but not when canceled

This commit is contained in:
Jonathan Shook 2022-11-19 00:55:58 -06:00
parent 40c9682340
commit bc4773269f

View File

@ -33,11 +33,12 @@ jobs:
run: mvn verify
- name: Capture
run: tar -cvf jbanks_files.tar [a-zA-Z]**/logs/*
run: tar -cvf logfiles.tar [a-zA-Z]**/logs/*
if: success() || failure()
- name: Archive Test Results
if: always()
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: jbanks_files.tar
path: logfiles.tar