From 832905ae677e5f5a9f41ce1c11a7f038fc9f750f Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Sat, 8 Feb 2025 18:34:33 -0500 Subject: [PATCH] GitHub Actions: Try to coerce the correct hash (again 3) --- cmake/modules/VersionInfo.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/VersionInfo.cmake b/cmake/modules/VersionInfo.cmake index cb00982ba70..6f31e0e7cba 100644 --- a/cmake/modules/VersionInfo.cmake +++ b/cmake/modules/VersionInfo.cmake @@ -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