CI: improve regex for checking tags

This commit is contained in:
Leonid Pliushch 2019-05-06 15:42:29 +03:00
parent 5897248cc1
commit dd4438c533

View File

@ -29,7 +29,7 @@ build_task:
# Determine changes in repository and build modified packages. # Determine changes in repository and build modified packages.
build_script: | 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 # If commit message contains line '%ci:reset-backlog', no builds
# should be done and CI should stop with "green" status. # should be done and CI should stop with "green" status.
MODIFIED_PACKAGES="" MODIFIED_PACKAGES=""
@ -71,9 +71,7 @@ publish_task:
# Publish. # Publish.
upload_to_bintray_script: | upload_to_bintray_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="" MODIFIED_PACKAGES=""
else else
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh) MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)