Skip to content

Commit 3c9ca8f

Browse files
authored
ci: skip Playwright merge job when E2E job is skipped (#196)
Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com>
1 parent 596991f commit 3c9ca8f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/e2e.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ jobs:
127127
e2e_report:
128128
name: Merge Playwright report
129129
runs-on: ubuntu-latest
130-
if: always()
130+
# Skip when `e2e` did not run (e.g. merge push to main); merge-reports fails with no blob artifacts.
131+
if: ${{ !cancelled() && (needs.e2e.result == 'success' || needs.e2e.result == 'failure') }}
131132
needs: [direct_push_check, e2e]
132133
steps:
133134
- name: Checkout

0 commit comments

Comments
 (0)