File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -58,18 +58,11 @@ jobs:
5858 - name : Load GPG key
5959 id : gpg
6060 if : inputs.gpg-fingerprint
61- env :
62- PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
63- PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
64- FINGERPRINT : ${{ inputs.gpg-fingerprint }}
65- run : |
66- # Import the private key from the GH secrets
67- echo "$PRIVATE_KEY" | gpg --import --batch --passphrase "$PASSPHRASE" -
68- # For debugging, show the contents of the keyring
69- gpg --list-keys --list-options show-unusable-subkeys=yes --with-subkey-fingerprint $FINGERPRINT
70- # Extract the email address
71- EMAIL=$(gpg --list-keys --with-colons $FINGERPRINT | head -n1 | awk -F: '$1=="uid" {match($10, /<([^>]+)>/, a); print a[1]}')
72- echo "email=$EMAIL" >> $GITHUB_OUTPUT
61+ uses : crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6
62+ with :
63+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
64+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
65+ fingerprint : ${{ inputs.gpg-fingerprint }}
7366
7467 - name : Get draft release
7568 id : draft-release
You can’t perform that action at this time.
0 commit comments