8000 Fix missing occurrence of branch name · franslarsson/scikit-learn@e92ae01 · GitHub
[go: up one dir, main page]

Skip to content

Commit e92ae01

Browse files
committed
Fix missing occurrence of branch name
1 parent 9e7e99e commit e92ae01

File tree

1 file changed

+4
-4
lines changed

.github/workflows/sync_pull_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
0