From 75a205ec69a6175a0ab76fbd44d7473c608fb511 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Sat, 6 Nov 2021 19:19:14 +0000 Subject: [PATCH] Only need to keep the tests output if there has been a failure --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d9165f..3d2b8a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -95,14 +95,14 @@ jobs: run: make test.units shell: bash - - if: ${{ always() }} + - if: ${{ failure() }} name: Move test outputs to an arch specific location shell: bash run: | mkdir -p tests/${{ matrix.os }} mv tests/*.out tests/${{ matrix.os }} - - if: ${{ always() }} + - if: ${{ failure() }} name: Upload tests output uses: actions/upload-artifact@v2 with: @@ -166,14 +166,14 @@ jobs: run: make test.units shell: bash - - if: ${{ always() }} + - if: ${{ failure() }} name: Move test outputs to an arch specific location shell: bash run: | mkdir -p tests/${{ matrix.os }} mv tests/*.out tests/${{ matrix.os }} - - if: ${{ always() }} + - if: ${{ failure() }} name: Upload tests output uses: actions/upload-artifact@v2 with: @@ -241,14 +241,14 @@ jobs: run: make test.units shell: bash - - if: ${{ always() }} + - if: ${{ failure() }} name: Move test outputs to an arch specific location shell: bash run: | mkdir -p tests/${{ matrix.os }} mv tests/*.out tests/${{ matrix.os }} - - if: ${{ always() }} + - if: ${{ failure() }} name: Upload tests output uses: actions/upload-artifact@v2 with: