We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af82901 + 71ac87f commit fa2128bCopy full SHA for fa2128b
1 file changed
.github/actions/build-common/action.yml
@@ -30,12 +30,15 @@ runs:
30
- name: merge into base_branch
31
if: ${{ github.event_name == 'pull_request' }}
32
shell: bash
33
+ env:
34
+ PR_NUMBER: ${{ github.event.number }}
35
+ PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
36
run: |
- echo base branch "${{ github.base_ref }}"
- echo pr branch "${{ github.head_ref }}"
- git checkout "${{ github.base_ref }}"
37
- git checkout -b "merging-${{ github.event.number }}"
38
- git merge --ff-only "${{ github.event.pull_request.head.sha }}"
+ echo base branch "${GITHUB_BASE_REF}"
+ 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}"
42
43
- name: git reset
44
0 commit comments