CI: let tag '%ci:reset-backlog' will affect PRs too

This commit is contained in:
Leonid Pliushch 2019-05-06 16:18:27 +03:00
parent f086ecdfda
commit 5fc3491354

View File

@ -33,6 +33,7 @@ build_task:
# If commit message contains line '%ci:reset-backlog', builds will be done # If commit message contains line '%ci:reset-backlog', builds will be done
# only for current commit. # only for current commit.
unset CIRRUS_LAST_GREEN_CHANGE unset CIRRUS_LAST_GREEN_CHANGE
unset CIRRUS_BASE_SHA
fi fi
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh) MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
for package in $MODIFIED_PACKAGES; do for package in $MODIFIED_PACKAGES; do
@ -72,6 +73,7 @@ publish_task:
upload_to_bintray_script: | upload_to_bintray_script: |
if grep -qiP '^\s*%ci:reset-backlog\s*$' <(git log --format="%B" -n 1 "$CIRRUS_CHANGE_IN_REPO"); then if grep -qiP '^\s*%ci:reset-backlog\s*$' <(git log --format="%B" -n 1 "$CIRRUS_CHANGE_IN_REPO"); then
unset CIRRUS_LAST_GREEN_CHANGE unset CIRRUS_LAST_GREEN_CHANGE
unset CIRRUS_BASE_SHA
fi fi
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh) MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
if [ -n "$MODIFIED_PACKAGES" ]; then if [ -n "$MODIFIED_PACKAGES" ]; then