CI: fix creation of empty artifacts archive when %ci:no-build is set
This commit is contained in:
parent
c37938d9d0
commit
5bdcbbd714
1
.github/workflows/packages.yml
vendored
1
.github/workflows/packages.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user