diff --git a/action.yaml b/action.yaml index 28f463a..dd44f78 100644 --- a/action.yaml +++ b/action.yaml @@ -50,13 +50,11 @@ runs: run: | cd "${{ inputs.context }}" if [[ "${{ inputs.gpg-password }}" != 'none' ]]; then - eval $(gpg-agent --daemon) + eval $(gpg-agent --daemon) && \ echo "${{ inputs.gpg-password }}" | \ - /usr/lib/gnupg/gpg-preset-passphrase --preset "${{ inputs.gpg-keygrip }}" - - makepkg -sc --needed --noconfirm --sign - - killall -u "$(id -un)" gpg-agent + /usr/lib/gnupg/gpg-preset-passphrase --preset "${{ inputs.gpg-keygrip }}" && \ + makepkg -sc --needed --noconfirm --sign && \ + killall -u "$(id -un)" gpg-agent || true else makepkg -sc --needed --noconfirm fi