Skip to content

Commit e80f915

Browse files
committed
Fix GPG setup
1 parent c6ba72b commit e80f915

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/reusable-release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ jobs:
7777
private-key: ${{ secrets.TENZIR_GITHUB_APP_PRIVATE_KEY }}
7878

7979
- name: Set up GPG signing
80-
run: |
81-
echo "${{ secrets.TENZIR_BOT_GPG_SIGNING_KEY }}" | gpg --batch --import
82-
KEY_ID=$(gpg --list-secret-keys --keyid-format=long | grep sec | head -1 | awk '{print $2}' | cut -d'/' -f2)
83-
git config --global user.signingkey "$KEY_ID"
84-
git config --global commit.gpgsign true
85-
git config --global tag.gpgsign true
80+
uses: crazy-max/ghaction-import-gpg@v6
81+
with:
82+
gpg_private_key: ${{ secrets.TENZIR_BOT_GPG_SIGNING_KEY }}
83+
git_user_signingkey: true
84+
git_commit_gpgsign: true
85+
git_tag_gpgsign: true
8686

8787
- name: Configure Git
8888
env:

0 commit comments

Comments
 (0)