Skip to content

Commit 1e83ebe

Browse files
authored
Merge pull request #37 from PostHog/fix/skip-project-board-workflow-for-forks
2 parents 70bc2e3 + 9426c6d commit 1e83ebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/flags-project-board.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
# the github.event_name is supposed to be `workflow_call`, but because this workflow lives in the special `.github` repository,
7070
# it preserves the original event name (e.g. pull_request).
7171
# This is a not well-documented special case.
72-
if: github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || github.event_name == 'pull_request_review'
72+
if: (github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || github.event_name == 'pull_request_review') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
7373
steps:
7474
- name: Generate GitHub App Token
7575
id: app-token

0 commit comments

Comments
 (0)