CI: fix creation of empty artifacts archive when %ci:no-build is set

This commit is contained in:
Leonid Pliushch 2020-06-02 20:42:02 +03:00
parent c37938d9d0
commit 5bdcbbd714

View File

@ -56,6 +56,7 @@ jobs:
# Process tag '%ci:no-build' that may be added as line to commit message.
# Forces CI to cancel current build with status 'passed'.
if grep -qiP '^\s*%ci:no-build\s*$' <(git log --format="%B" -n 1 "HEAD"); then
tar cf artifacts/debs-${{ matrix.target_arch }}.tar debs
echo "[!] Force exiting as tag '%ci:no-build' was applied to HEAD commit message."
exit 0
fi