You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If job is triggered using pull_request there is no actual branch available in GITHUB_REF_NAME. This looks a bit issue in GitHub context side since there is no clear variable where to get branch name regardless how job is triggered. Maybe branch name extracting should be separate variable that works also for pull_requests.
Hi @jupe ,
thanks for your feedback!
You're right, GITHUB_REF_NAME is not set for event type pull_request by GitHub.
That's why I improvedgithub-env-vars-action in version v1.3.0 📦 to solve this issue: There's now a new environment variable GITHUB_BRANCH_NAME exactly for this use case! 💪 It contains the branch name for both event types push and pull_request.
Have fun using github-env-vars-action and give it a ⭐.
If job is triggered using
pull_request
there is no actual branch available inGITHUB_REF_NAME
. This looks a bit issue in GitHub context side since there is no clear variable where to get branch name regardless how job is triggered. Maybe branch name extracting should be separate variable that works also for pull_requests.The text was updated successfully, but these errors were encountered: