Skip to content

Commit

Permalink
Only upload artifacts on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodh committed Dec 11, 2024
1 parent 8bb93e5 commit b6ea872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b6ea872

Please sign in to comment.