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

Commit b141cf6

Browse files
authored
chore: fix e2e tests condition in workflow yml (#652)
1 parent ac8e9f3 commit b141cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
- run: yarn integration
2929
- name: Wait for existing workflow to complete before e2e tests
3030
# 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 }}
31+
if: ${{ matrix.node-version == '12.x' && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) }}
3232
uses: softprops/turnstyle@v1
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
- name: Run e2e tests
36-
if: ${{ matrix.node-version == '12.x' && github.event.pull_request.head.repo.full_name == github.repository }}
36+
if: ${{ matrix.node-version == '12.x' && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) }}
3737
env:
3838
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_AT }}
3939
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ST }}

0 commit comments

Comments
 (0)