Skip to content

Commit

Permalink
Only create Artifacts if a test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed Jun 17, 2021
1 parent 2d07576 commit 36853f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ jobs:
TEST_FLAGS: ${{ matrix.mvnflags }}
run: mvn install -B -V -P-assembly -Pcoverage-report $TEST_FLAGS

# Save results of tests to downloadable artifact for this job
- name: Archive Results of ${{ matrix.type }}
# If previous step failed, save results of tests to downloadable artifact for this job
# (This artifact is downloadable at the bottom of any job's summary page)
- name: Upload Results of ${{ matrix.type }} to Artifact
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.type }} results
Expand Down

0 comments on commit 36853f8

Please sign in to comment.