From d4ab6a83bc2f26673a66d2013e2d874153d3dd2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= <66256922+daniel-weisse@users.noreply.github.com> Date: Fri, 24 May 2024 08:46:22 +0200 Subject: [PATCH] ci: check for pattern completion instead of file when creating archive (#3120) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/actions/artifact_upload/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/artifact_upload/action.yml b/.github/actions/artifact_upload/action.yml index 14f5df055..f2e637dc1 100644 --- a/.github/actions/artifact_upload/action.yml +++ b/.github/actions/artifact_upload/action.yml @@ -59,7 +59,7 @@ runs: for target in ${paths} do - if [[ -f "${target}" ]] + if compgen -G "${target}" > /dev/null then pushd "$(dirname "${target}")" || exit 1 7zz a -p'${{ inputs.encryptionSecret }}' -bso0 -bsp0 -t7z -ms=on -mhe=on "${{ steps.tempdir.outputs.directory }}/archive.7z" "$(basename "${target}")"