Skip to content

Commit e9c803c

Browse files
author
Hendry, Adam
committed
fix(entrypoint.sh): add gpg-sign back
Add `--gpg-sign` back to `commitizen`.
1 parent de4b095 commit e9c803c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ if [[ $INPUT_GPG_SIGN == 'true' ]]; then
2020
exit 2
2121
fi
2222
echo "Configuring GPG for signing commits and tags..."
23-
git config --local commit.gpgsign true
24-
git config --local tag.gpgsign true
2523
git config --local user.signingkey "${INPUT_GIT_SIGNINGKEY}"
2624
fi
2725

@@ -43,6 +41,9 @@ CZ_CMD=('cz')
4341
if [[ $INPUT_DEBUG == 'true' ]]; then
4442
CZ_CMD+=('--debug')
4543
fi
44+
if [[ $INPUT_GPG_SIGN == 'true' ]]; then
45+
CZ_CMD+=('--gpg-sign')
46+
fi
4647
if [[ $INPUT_NO_RAISE ]]; then
4748
CZ_CMD+=('--no-raise' "$INPUT_NO_RAISE")
4849
fi

0 commit comments

Comments
 (0)