CI: an attempt to prevent failure of upload job when %ci:no-build tag is specified

%ci:no-build causes packages not being built, however it doesn't prevent
artifacts from being uploaded/downloaded. Due to unavailable *.deb files,
upload job fails during download of the artifacts archive.

Placeholder file should make a valid artifact archive to be available so
job will not fail anymore.
This commit is contained in:
Leonid Pliushch 2020-06-02 20:25:36 +03:00
parent 1e15e1cb4b
commit 1d43d0981e
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ jobs:
CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r "${BASE_COMMIT}" "HEAD")
fi
mkdir -p ./artifacts ./debs
touch ./debs/.placeholder
# 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