Skip to content

Commit 71ac87f

Browse files
committed
odin-431: sonar fixes
1 parent af82901 commit 71ac87f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/actions/build-common/action.yml

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

0 commit comments

Comments
 (0)