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