From 5bdcbbd7144e0705e737b1b50253169319241be5 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Tue, 2 Jun 2020 20:42:02 +0300 Subject: [PATCH] CI: fix creation of empty artifacts archive when %ci:no-build is set --- .github/workflows/packages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 79df8b224..0f531c1be 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -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