Skip to content

Commit 30be166

Browse files
authored
Merge pull request #44 from liblaf/check-consistency
feat: add `check-consistency` option
2 parents 7083fa6 + f2c0d3f commit 30be166

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ inputs:
7171
increment:
7272
description: "Manually specify the desired increment"
7373
required: false
74+
check_consistency:
75+
default: false
76+
description: "check consistency among versions defined in commitizen configuration and version_files"
77+
required: false

entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ fi
4848
if [[ $INPUT_INCREMENT ]]; then
4949
CZ_CMD+=('--increment' "$INPUT_INCREMENT")
5050
fi
51+
if [[ $INPUT_CHECK_CONSISTENCY ]]; then
52+
CZ_CMD+=('--check-consistency')
53+
fi
5154
if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then
5255
CZ_CMD+=('--changelog-to-stdout')
5356
echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME"

0 commit comments

Comments
 (0)