Skip to content

Commit 2e18296

Browse files
Skip graphql schema check in forks
1 parent ef86ca4 commit 2e18296

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/tests-pr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ jobs:
9090
run: pnpm knip
9191

9292
graphql-schema:
93-
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
93+
# Skip on dependabot PRs (no access to required secrets) and on PRs opened
94+
# from forks (also no access to secrets), but always run on merge_group
95+
# events since merge queue runs from the base repo.
96+
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && (github.event_name == 'merge_group' || github.event.pull_request.head.repo.full_name == github.repository) }}
9497
name: 'Check graphql-codegen has been run'
9598
runs-on: macos-latest
9699
timeout-minutes: 30

0 commit comments

Comments
 (0)