Skip to content

Commit d1ad64e

Browse files
committed
Better docs
1 parent 49b464f commit d1ad64e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/actions/cmake/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ runs:
6060
# GitHub creates merge commits for PRS, so we:
6161
# - explicitly provide branch name
6262
# - provide `github.head_ref` to get the actual commit SHA of the PR branch.
63+
#
64+
# This way it works both for PRs and pushes to branches.
6365
GITHUB_BRANCH_NAME: "${{ github.head_ref || github.ref_name }}"
6466
GITHUB_HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
6567
run: |

cmake/ClioVersion.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ else ()
2525
)
2626

2727
if (DEFINED ENV{GITHUB_BRANCH_NAME})
28-
# Please, see cmake action in .github/actions/ for details
28+
# Please, see .github/actions/cmake/action.yml for details
2929
set(BRANCH $ENV{GITHUB_BRANCH_NAME})
3030
set(GITHUB_HEAD_SHA $ENV{GITHUB_HEAD_SHA})
3131
string(SUBSTRING ${GITHUB_HEAD_SHA} 0 7 REV)

0 commit comments

Comments
 (0)