Fix: gpg env seems not found
This commit is contained in:
10
action.yaml
10
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
|
||||
|
||||
Reference in New Issue
Block a user