Skip to content

Commit 40d941a

Browse files
committed
feat: Add config option to support custom commitizen config
1 parent 2e8226b commit 40d941a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,6 @@ inputs:
122122
manual_version:
123123
description: "Manually specify the version to bump to"
124124
required: false
125+
config:
126+
description: "Manually specify the config file to use"
127+
required: false

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ echo "previous_version_minor=${PREV_REV_MINOR}" >>"$GITHUB_OUTPUT"
5151

5252

5353
CZ_CMD=('cz')
54+
55+
if [[ $INPUT_CONFIG ]]; then
56+
CZ_CMD+=('--config' "$INPUT_CONFIG")
57+
fi
58+
5459
if [[ $INPUT_DEBUG == 'true' ]]; then
5560
CZ_CMD+=('--debug')
5661
fi

0 commit comments

Comments
 (0)