Skip to content

Commit de69725

Browse files
aspiersclaude
andcommitted
ci(e2e): skip the run job on the changesets Release PR
The changesets/action "Version Packages" PR has head ref `changeset-release/main` and is bot-generated — Railway never spins up a preview for it. The e2e workflow's "Find Railway preview deployment" step then fails fast with "No Railway deployments exist for PR #N preview at all", and the resulting red check on the Release PR is meaningless: there is no preview to point e2e at, by design. Skip the `run` job on PRs whose head ref is `changeset-release/main`. This is the same skip-job-not-workflow pattern already used by the `gate` job above: a skipped job still reports conclusion=skipped to branch protection, which is treated as passing, so the Release PR no longer carries a spurious red check. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2551e20 commit de69725

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/e2e-tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,18 @@ jobs:
7272
#
7373
# `always()` is needed because `gate` is skipped on non-PR
7474
# events, and GitHub would otherwise cascade-skip this job.
75-
if: always() && (needs.gate.outputs.relevant == 'true' || github.event_name != 'pull_request')
75+
#
76+
# Skip the changesets/action "Version Packages" PR (head ref
77+
# `changeset-release/main`): no Railway preview is provisioned
78+
# for that bot-generated branch, so the "Find Railway preview
79+
# deployment" step would always fail with "No Railway
80+
# deployments exist for PR #N preview at all". A skipped *job*
81+
# still reports conclusion=skipped to branch protection, which
82+
# is treated as passing — same pattern as the `gate` job above.
83+
if: >-
84+
always() &&
85+
github.event.pull_request.head.ref != 'changeset-release/main' &&
86+
(needs.gate.outputs.relevant == 'true' || github.event_name != 'pull_request')
7687
runs-on: blacksmith-4vcpu-ubuntu-2404
7788
timeout-minutes: 20
7889
permissions:

0 commit comments

Comments
 (0)