File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ jobs:
2222 # Assign the contributor-specified branch name to an environment
2323 # variable to sanitize it and avoid arbitrary bash code injection by
2424 # non-privileged users.
25- HEAD_REF : ${{ github.event.pull_request.head.ref }}
25+ PR_HEAD_REF : ${{ github.event.pull_request.head.ref }}
2626 run : |
2727 set -xe
2828 git remote add pr_remote ${{ github.event.pull_request.head.repo.html_url }}
29- git fetch pr_remote $HEAD_REF
30- git checkout -b pr_branch pr_remote/$HEAD_REF
29+ git fetch pr_remote $PR_HEAD_REF
30+ git checkout -b pr_branch pr_remote/$PR_HEAD_REF
3131 git config user.name github-actions
3232 git config user.email github-actions@github.com
3333 git merge origin/master
34- git push pr_remote HEAD:${{ github.event.pull_request.head.ref }}
34+ git push pr_remote HEAD:$PR_HEAD_REF
You can’t perform that action at this time.
0 commit comments