forked from qt-creator/qt-creator
GitHub Actions: Fix failures when commit message had certain characters
The variable was not quoted and in certain cases the CMake code checking for ccache clearing messages would error and the job would fail. See 28a20b75bab8908e43ebf553a2ae2ef52775861b Change-Id: I7703a547129b3294b6d8094035a272e5d35c5c60 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
2
.github/workflows/build_cmake.yml
vendored
2
.github/workflows/build_cmake.yml
vendored
@@ -432,7 +432,7 @@ jobs:
|
|||||||
COMMAND git log --format=%B -n 1 ${{ github.event.after }}
|
COMMAND git log --format=%B -n 1 ${{ github.event.after }}
|
||||||
OUTPUT_VARIABLE git_commit_msg
|
OUTPUT_VARIABLE git_commit_msg
|
||||||
)
|
)
|
||||||
if (${git_commit_msg} MATCHES "ccache:[ ]*clea[r|n]")
|
if ("${git_commit_msg}" MATCHES "ccache:[ ]*clea[r|n]")
|
||||||
execute_process(COMMAND ccache --clear COMMAND_ECHO STDOUT)
|
execute_process(COMMAND ccache --clear COMMAND_ECHO STDOUT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user