Skip to content

Commit

Permalink
ci: Fix broken key importing (#474)
Browse files Browse the repository at this point in the history
gpg apparently uses tty for printing warnings
(in this case about trust level for the new key)

Because there's no valid tty in GitHub Actions (or any other CI)
we reflect that by passing extra flags to gpg.
  • Loading branch information
radeksimko authored Apr 29, 2021
1 parent 09f7120 commit 987604d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
hc-releases version
-
name: Import key for archive signing
run: echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import
run: echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import --batch --no-tty
-
name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down

0 comments on commit 987604d

Please sign in to comment.