Skip to content

Commit 17e677f

Browse files
ostenbomclaude
andcommitted
Only run the e2e workflows in the upstream repository
The Deploy to Vercel/Netlify buttons copy .github/workflows into the new repository, where the workflows can't find this repository's Vercel project and always fail. Skip the jobs outside endformdev/playwright-tutorial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f5a1020 commit 17e677f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/endform-tests-on-main.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ permissions:
1111

1212
jobs:
1313
e2e:
14+
# Only run in this repository: copies made by the Deploy to Vercel/Netlify
15+
# buttons don't have its Vercel project, so the job would always fail there.
16+
if: github.repository == 'endformdev/playwright-tutorial'
1417
runs-on: ubuntu-latest
1518
steps:
1619
- name: Checkout code

‎.github/workflows/endform-tests-on-prs.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ permissions:
1111

1212
jobs:
1313
e2e:
14+
# Only run in this repository: copies made by the Deploy to Vercel/Netlify
15+
# buttons don't have its Vercel project, so the job would always fail there.
16+
if: github.repository == 'endformdev/playwright-tutorial'
1417
runs-on: ubuntu-latest
1518
steps:
1619
- name: Checkout code

0 commit comments

Comments
 (0)