diff --git a/.github/workflows/e2e-regression-tests.yml b/.github/workflows/e2e-regression-tests.yml index c202a2525..df7c785d6 100644 --- a/.github/workflows/e2e-regression-tests.yml +++ b/.github/workflows/e2e-regression-tests.yml @@ -75,14 +75,14 @@ jobs: working-directory: tests - uses: actions/upload-artifact@v4 - if: always() + if: failure() with: name: ${{matrix.test}} screenshot path: tests/cypress/screenshots/ if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` - uses: actions/upload-artifact@v4 - if: always() + if: failure() with: name: ${{matrix.test}} video path: tests/cypress/videos/