Skip to content

Commit

Permalink
Give earlier warning when PGP key is misconfigured
Browse files Browse the repository at this point in the history
Related: #17
  • Loading branch information
rtyley committed Jan 13, 2024
1 parent 0a2f4bc commit 04aa652
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
key_fingerprint=$key_fingerprint
key_email=$key_email
EndOfFile
if ! [[ "$key_fingerprint" =~ ^[[:xdigit:]]{8,}$ ]]; then
echo "::error title=Invalid PGP key::Has the SONATYPE_PASSWORD been set correctly?"
exit 1
fi
- name: Check for default branch
id: generate-version-suffix
env:
Expand Down

0 comments on commit 04aa652

Please sign in to comment.