Skip to content

Commit c5c0ee9

Browse files
committed
Revert "Update .github/workflows/sync-binaries-task.yml"
This reverts commit ef117a4.
1 parent 8682832 commit c5c0ee9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/sync-binaries-task.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ jobs:
4343
run: |
4444
./firmware/generator.py
4545
46+
# fix `gpg: signing failed: Inappropriate ioctl for device`
47+
# https://github.com/keybase/keybase-issues/issues/2798
4648
- name: Import GPG key
4749
run: |
48-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | \
49-
base64 -di | \
50-
gpg --batch --import --passphrase "${{ secrets.PASSPHRASE }}"
50+
echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 -di > /tmp/private.key
51+
gpg --batch --import --passphrase "${{ secrets.PASSPHRASE }}" /tmp/private.key
52+
echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
5153
5254
# disable gpg pass prompt
5355
# https://stackoverflow.com/questions/49072403/suppress-the-passphrase-prompt-in-gpg-command

0 commit comments

Comments
 (0)