From 953d43e73cdfd138c83374ac03cf134000e0e62c Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Mon, 6 May 2019 15:42:29 +0300 Subject: [PATCH] CI: improve regex for checking tags --- .cirrus.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index d5ce33e6f..04902c162 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -29,7 +29,7 @@ build_task: # Determine changes in repository and build modified packages. build_script: | - if grep -qiP '^%ci:reset-backlog$' <(echo "$CIRRUS_CHANGE_MESSAGE"); then + if grep -qiP '^\s*%ci:reset-backlog\s*$' <(echo "$CIRRUS_CHANGE_MESSAGE"); then # If commit message contains line '%ci:reset-backlog', no builds # should be done and CI should stop with "green" status. MODIFIED_PACKAGES="" @@ -71,9 +71,7 @@ publish_task: # Publish. upload_to_bintray_script: | - if grep -qiP '^%ci:reset-backlog$' <(echo "$CIRRUS_CHANGE_MESSAGE"); then - # If commit message contains line '%ci:reset-backlog', no builds - # should be done and CI should stop with "green" status. + if grep -qiP '^\s*%ci:reset-backlog\s*$' <(echo "$CIRRUS_CHANGE_MESSAGE"); then MODIFIED_PACKAGES="" else MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)