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:
parent
1e15e1cb4b
commit
1d43d0981e
1
.github/workflows/packages.yml
vendored
1
.github/workflows/packages.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user