Skip to content

Commit d4f4171

Browse files
author
Hendry, Adam
committed
fix(signingkey): specify UID
Git takes the UID for the signing key, not the key itself.
1 parent 2bae08e commit d4f4171

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ inputs:
7272
description: "Manually specify the desired increment"
7373
required: false
7474
check_consistency:
75-
default: false
75+
default: 'false'
7676
description: "check consistency among versions defined in commitizen configuration and version_files"
7777
required: false
7878
gpg_sign:
@@ -82,10 +82,9 @@ inputs:
8282
crazy-max/ghaction-import-gpg)
8383
required: false
8484
default: "false"
85-
gpg_private_key:
85+
git_signingkey:
8686
description: >
87-
The GPG private key to sign commits and tags (for git operations). `gpg_sign` must
88-
be set to true.
87+
The UID for the GPG key git will use to sign commits and tags (for git operations). `gpg_sign` must be set to true.
8988
required: false
9089
debug:
9190
description: "If true, prints debug output to GitHub Actions stdout."

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ echo "Git name: $(git config --get user.name)"
1515
echo "Git email: $(git config --get user.email)"
1616

1717
if [[ $INPUT_GPG_SIGN == 'true' ]]; then
18-
if [[ -z $INPUT_GPG_PRIVATE_KEY ]]; then
19-
echo 'Missing input "gpg_private_key".' >&2
18+
if [[ -z $INPUT_GIT_SIGNINGKEY ]]; then
19+
echo 'Missing input "git_signingkey".' >&2
2020
exit 2
2121
fi
2222
echo "Configuring GPG for signing commits and tags..."
2323
git config --local commit.gpgsign true
2424
git config --local tag.gpgsign true
25-
git config --local user.signingkey "${INPUT_GPG_PRIVATE_KEY}"
25+
git config --local user.signingkey "${INPUT_GIT_SIGNINGKEY}"
2626
echo "Git sign commits?: $(git config --get commit.gpgsign)"
2727
echo "Git sign tags?: $(git config --get tag.gpgsign)"
2828
fi

0 commit comments

Comments
 (0)