From d7e64583ec24731975c84e752bad5e2e16b406da Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Thu, 26 Jan 2023 11:55:26 +0000 Subject: [PATCH] Actions: store reports on failure not success only --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb5c651d9..1effcd83d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: - run: npm run test:e2e:headless if: env.STAGE == 'REVIEW' || env.STAGE == 'STAGING' - name: Store reports - if: env.STAGE == 'REVIEW' || env.STAGE == 'STAGING' + if: (env.STAGE == 'REVIEW' || env.STAGE == 'STAGING') && failure() uses: actions/upload-artifact@v3 with: name: reports