Fix: gpg env seems not found

This commit is contained in:
2025-07-28 01:37:51 +08:00
parent 67f75395de
commit 0a792691fc

View File

@@ -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