From 1d43d0981ef2628e05be2396b2471ea01008c7da Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Tue, 2 Jun 2020 20:25:36 +0300 Subject: [PATCH] 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. --- .github/workflows/packages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 5aa0cbba9..79df8b224 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -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