diff options
author | Cristian Adam <cristian.adam@qt.io> | 2021-11-23 18:15:58 +0100 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2021-11-23 17:19:40 +0000 |
commit | 478f68042beef8d94f7c4353a27e599e7d8bfdcd (patch) | |
tree | a49efc0455c7ead5a6810ff9ed4a1be51038a898 /.github | |
parent | 0c53c2daefdef4f7a6ccdfd394ab1f5b78b52a56 (diff) | |
download | qt-creator-478f68042beef8d94f7c4353a27e599e7d8bfdcd.tar.gz |
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>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build_cmake.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index d037726a25..92ce88f52c 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -432,7 +432,7 @@ jobs: COMMAND git log --format=%B -n 1 ${{ github.event.after }} 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) endif() |