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