create_pull_request
doesn't check out branch when called from pull_request
event
#242
Labels
bug
Something isn't working
Describe the bug
create_pull_request
does not check out the correct branch when called from an action triggered bypull_request
events, this means it runs on yourmain
branch and attempts to PR any changes onmain
that aren't on your PR too.The issue is that
GITHUB_REF
doesn't refer to the branch name on an action triggered viapull_request
event it looks like:refs/pull/{pr_number}/merge
.github-action/entrypoint.sh
Line 233 in 6ed209d
It should instead use
${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
.source
The text was updated successfully, but these errors were encountered: