Skip to content
Discussion options

You must be logged in to vote

I found the following works (ensure you replace org/repo).

Fork:

if: ${{ github.event.pull_request.head.repo.full_name != 'org/repo' }}

Not a fork:

if: ${{ github.event.pull_request.head.repo.full_name == 'org/repo' }}

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eiffel-fl
Comment options

Comment options

You must be logged in to vote
1 reply
@gluxon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product Feedback Share your thoughts and suggestions on GitHub features and improvements
6 participants