Skip to content

Commit

Permalink
GitHub Actions: Try to coerce the correct hash (again 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Feb 8, 2025
1 parent f9a01b7 commit 832905a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/VersionInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ IF(GIT_FOUND AND NOT FORCE_VERSION)
# and sha hash from the environment and add it to the build metadata
if("$ENV{GITHUB_REF}" MATCHES "refs/pull/([0-9]+)/merge")
list(APPEND BUILD_METADATA "pr${CMAKE_MATCH_1}")
execute_process("${GIT_EXECUTABLE}" log -1 --pretty=format:"%H"
execute_process("${GIT_EXECUTABLE}" log -1 "--pretty=format:%H"
OUTPUT_VARIABLE GITHUB_HASH
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
TIMEOUT 10
Expand Down

0 comments on commit 832905a

Please sign in to comment.