diff --git a/action.yml b/action.yml index eb4c8ee..337572b 100644 --- a/action.yml +++ b/action.yml @@ -50,9 +50,12 @@ runs: run: | echo "#!/bin/bash echo '📤️ Uploading package to ${{ gitea.server_url }} ...' - curl -f --user \"\$username:\$token\" \ - --upload-file ./*.tar.zst \ - '${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/arch/${{ steps.parsed.outputs.destination }}' + for f in ./*.tar.zst; do + [ -f \"$f\" ] || continue + curl -f --user \"\$username:\$token\" \ + --upload-file \"$f\" \ + '${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/arch/${{ steps.parsed.outputs.destination }}' + done " > "./post-entrypoint.sh" chmod +x "./post-entrypoint.sh" git config --global user.name 'Guy Incognito'