File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
.github/actions/build-common Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,15 @@ runs:
3030 - name : merge into base_branch
3131 if : ${{ github.event_name == 'pull_request' }}
3232 shell : bash
33+ env :
34+ PR_NUMBER : ${{ github.event.number }}
35+ PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
3336 run : |
34- echo base branch "${{ github.base_ref } }"
35- echo pr branch "${{ github.head_ref } }"
36- git checkout "${{ github.base_ref } }"
37- git checkout -b "merging-${{ github.event.number } }"
38- git merge --ff-only "${{ github.event.pull_request.head.sha } }"
37+ echo base branch "${GITHUB_BASE_REF }"
38+ echo pr branch "${GITHUB_HEAD_REF }"
39+ git checkout "${GITHUB_BASE_REF }"
40+ git checkout -b "merging-${PR_NUMBER }"
41+ git merge --ff-only "${PR_HEAD_SHA }"
3942
4043 - name : git reset
4144 shell : bash
You can’t perform that action at this time.
0 commit comments