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
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ build_task:
# If commit message contains line '%ci:reset-backlog', builds will be done
# only for current commit.
unset CIRRUS_LAST_GREEN_CHANGE
unset CIRRUS_BASE_SHA
fi
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
for package in $MODIFIED_PACKAGES; do
@ -72,6 +73,7 @@ publish_task:
upload_to_bintray_script: |
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_BASE_SHA
fi
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
if [ -n "$MODIFIED_PACKAGES" ]; then