We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1ad64e commit 054c59cCopy full SHA for 054c59c
.github/actions/cmake/action.yml
@@ -57,9 +57,12 @@ runs:
57
STATIC: "${{ inputs.static == 'true' && 'ON' || 'OFF' }}"
58
TIME_TRACE: "${{ inputs.time_trace == 'true' && 'ON' || 'OFF' }}"
59
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
60
- # GitHub creates merge commits for PRS, so we:
+ # GitHub creates a merge commit for a PR
61
+ # https://www.kenmuse.com/blog/the-many-shas-of-a-github-pull-request/
62
+ #
63
+ # We:
64
# - explicitly provide branch name
- # - provide `github.head_ref` to get the actual commit SHA of the PR branch.
65
+ # - use `github.head_ref` to get the SHA of last commit in the PR branch
66
#
67
# This way it works both for PRs and pushes to branches.
68
GITHUB_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
0 commit comments