summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2021-11-23 18:15:58 +0100
committerCristian Adam <cristian.adam@qt.io>2021-11-23 17:19:40 +0000
commit478f68042beef8d94f7c4353a27e599e7d8bfdcd (patch)
treea49efc0455c7ead5a6810ff9ed4a1be51038a898 /.github
parent0c53c2daefdef4f7a6ccdfd394ab1f5b78b52a56 (diff)
downloadqt-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.yml2
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()