Skip to content

Commit 75547a4

Browse files
committed
Handle gpg-agent already running gracefully
Ignore error if gpg-agent is already running - this is normal in CI environments.
1 parent df0fa63 commit 75547a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ jobs:
240240
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
241241
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg.conf
242242
243-
# Start gpg-agent with loopback pinentry
244-
gpg-agent --daemon --allow-loopback-pinentry
243+
# Start gpg-agent with loopback pinentry (ignore error if already running)
244+
gpg-agent --daemon --allow-loopback-pinentry 2>&1 || true
245245
246246
# Import the subkey using passphrase
247247
# Write key to temp file, then import with passphrase

0 commit comments

Comments
 (0)