@@ -14,6 +14,19 @@ git config --local pull.rebase true
14
14
echo " Git name: $( git config --get user.name) "
15
15
echo " Git email: $( git config --get user.email) "
16
16
17
+ if [[ $INPUT_GPG_SIGN == ' true' ]]; then
18
+ if [[ -z $INPUT_GPG_PRIVATE_KEY ]]; then
19
+ echo ' Missing input "gpg_private_key".' >&2
20
+ exit 2
21
+ fi
22
+ echo " Configuring GPG for signing commits and tags..."
23
+ git config --local commit.gpgsign true
24
+ git config --local tag.gpgsign true
25
+ git config --local user.signingkey " ${INPUT_GPG_PRIVATE_KEY} "
26
+ echo " Git sign commits?: $( git config --get commit.gpgsign) "
27
+ echo " Git sign tags?: $( git config --get tag.gpgsign) "
28
+ fi
29
+
17
30
PIP_CMD=(' pip' ' install' )
18
31
if [[ $INPUT_COMMITIZEN_VERSION == ' latest' ]]; then
19
32
PIP_CMD+=(' commitizen' )
@@ -29,19 +42,14 @@ echo "Commitizen version: $(cz version)"
29
42
PREV_REV=" $( cz version --project) "
30
43
31
44
CZ_CMD=(' cz' )
45
+ if [[ $INPUT_DEBUG == ' true' ]]; then
46
+ CZ_CMD+=(' --debug' )
47
+ fi
32
48
if [[ $INPUT_NO_RAISE ]]; then
33
49
CZ_CMD+=(' --no-raise' " $INPUT_NO_RAISE " )
34
50
fi
35
51
CZ_CMD+=(' bump' ' --yes' )
36
52
if [[ $INPUT_GPG_SIGN == ' true' ]]; then
37
- if [[ -z $INPUT_GPG_PRIVATE_KEY ]]; then
38
- echo ' Missing input "gpg_private_key".' >&2
39
- exit 2
40
- fi
41
- git config --local gpg.program gpg
42
- git config --local commit.gpgsign true
43
- git config --local tag.gpgsign true
44
- git config --local user.signingkey " ${INPUT_GPG_PRIVATE_KEY} "
45
53
CZ_CMD+=(' --gpg-sign' )
46
54
fi
47
55
if [[ $INPUT_DRY_RUN == ' true' ]]; then
0 commit comments