From 6bcc7ecafd81e4b6ad691d33fa5d2d8bf00609cb Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Wed, 13 Apr 2022 18:05:03 +0200 Subject: [PATCH] build: fix AppImage files release upload --- .github/workflows/glpi-agent-packaging.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/glpi-agent-packaging.yml b/.github/workflows/glpi-agent-packaging.yml index 3b9c3be84..31bf4ba97 100644 --- a/.github/workflows/glpi-agent-packaging.yml +++ b/.github/workflows/glpi-agent-packaging.yml @@ -639,7 +639,12 @@ jobs: id: upload-linux-appimage-assets if: ${{ needs.setup-release.outputs.create-release == 'yes' }} run: | - gh release upload ${{ needs.setup-release.outputs.tag_name }} *.AppImage{,.zsync} + unset FILES + for file in *.AppImage{,.zsync} + do + [ -e "$file" ] && FILES="$FILES $file" + done + gh release upload ${{ needs.setup-release.outputs.tag_name }} $FILES shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}