From b6ea87205e26f2586cfd417496556946bbcdc086 Mon Sep 17 00:00:00 2001 From: Nico de Haen Date: Wed, 11 Dec 2024 15:13:44 +0100 Subject: [PATCH] Only upload artifacts on failure --- .github/workflows/e2e.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index a73747c10..ff1f6ee05 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -1,7 +1,7 @@ name: e2e Tests on: push: - branches: [main, e2e-github-action] + branches: [main] paths-ignore: - 'docs/**' # only trigger build if a file outside of /docs was changed - '_locales/*.xml' @@ -104,7 +104,7 @@ jobs: - name: Run e2e tests run: pnpm e2e --project Chrome - uses: actions/upload-artifact@v4 - if: ${{ failure() }} + if: ${{ failure() && !cancelled() }} with: name: e2e-report path: packages/e2e-tests/playwright-report