Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit ac8e9f3

Browse files
authored
chore: fix CI workflow to run e2e tests only on non-fork PRs
1 parent 4d8b5ab commit ac8e9f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ jobs:
2727
- run: yarn test
2828
- run: yarn integration
2929
- name: Wait for existing workflow to complete before e2e tests
30-
if: ${{ matrix.node-version == '12.x' && github.repository == 'serverless-nextjs/serverless-next.js' }}
30+
# Note: we only run e2e tests once (using the 12.x version in matrix) and only if this PR is not from a fork
31+
if: ${{ matrix.node-version == '12.x' && github.event.pull_request.head.repo.full_name == github.repository }}
3132
uses: softprops/turnstyle@v1
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3435
- name: Run e2e tests
35-
if: ${{ matrix.node-version == '12.x' && github.repository == 'serverless-nextjs/serverless-next.js' }}
36+
if: ${{ matrix.node-version == '12.x' && github.event.pull_request.head.repo.full_name == github.repository }}
3637
env:
3738
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_AT }}
3839
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ST }}

0 commit comments

Comments
 (0)