Skip to content

Get PR repository name #26411

Answered by Simran-B
reikdas asked this question in Actions
Discussion options

You must be logged in to vote

You can do e.g.

- env:
    REPO: ${{ github.event.pull_request.head.repo.full_name }}
  run: |
    echo "$REPO"
  if: github.event_name == 'pull_request'

REPO will be like other-user/repo-name.

docs.github.com

Webhook events and payloads - GitHub Docs

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
3 participants