Skip to content

Commit 27b26cf

Browse files
committed
Try to use github.head_ref
1 parent c54555e commit 27b26cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/cmake/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ runs:
5959
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
6060
# GitHub creates merge commits for PRS, so we:
6161
# - explicitly provide branch name
62-
# - provide `github.event.pull_request.head.sha` to get the actual commit SHA of the PR branch.
63-
GITHUB_BRANCH_NAME: "${{ github.event.pull_request.head.ref || github.ref_name }}"
62+
# - provide `github.head_ref` to get the actual commit SHA of the PR branch.
63+
GITHUB_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
6464
GITHUB_HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
6565
run: |
6666
cmake \

0 commit comments

Comments
 (0)