Skip to content

GitHub Actions: get the PR ID that started it? #26128

Answered by nickvanw
mrcasals asked this question in Actions
Discussion options

You must be logged in to vote

Hi @mrcasals!

You should be able to get this information by looking at the file located at the environment variable GITHUB_EVENT_PATH, you can find more information on that here: https://developer.github.com/actions/creating-github-actions/accessing-the-runtime-environment/#environment-variables

This should contain information about the Pull Request that has triggered your action.

If I’m misreading anything, let me know!

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
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
0 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
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants