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: | run: |
cd "${{ inputs.context }}" cd "${{ inputs.context }}"
if [[ "${{ inputs.gpg-password }}" != 'none' ]]; then if [[ "${{ inputs.gpg-password }}" != 'none' ]]; then
eval $(gpg-agent --daemon) eval $(gpg-agent --daemon) && \
echo "${{ inputs.gpg-password }}" | \ echo "${{ inputs.gpg-password }}" | \
/usr/lib/gnupg/gpg-preset-passphrase --preset "${{ inputs.gpg-keygrip }}" /usr/lib/gnupg/gpg-preset-passphrase --preset "${{ inputs.gpg-keygrip }}" && \
makepkg -sc --needed --noconfirm --sign && \
makepkg -sc --needed --noconfirm --sign killall -u "$(id -un)" gpg-agent || true
killall -u "$(id -un)" gpg-agent
else else
makepkg -sc --needed --noconfirm makepkg -sc --needed --noconfirm
fi fi