diff --git a/action.yml b/action.yml index 2821930..87682af 100644 --- a/action.yml +++ b/action.yml @@ -71,3 +71,7 @@ inputs: increment: description: "Manually specify the desired increment" required: false + check_consistency: + default: false + description: "check consistency among versions defined in commitizen configuration and version_files" + required: false diff --git a/entrypoint.sh b/entrypoint.sh index 6cc1c39..606740a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -48,6 +48,9 @@ fi if [[ $INPUT_INCREMENT ]]; then CZ_CMD+=('--increment' "$INPUT_INCREMENT") fi +if [[ $INPUT_CHECK_CONSISTENCY ]]; then + CZ_CMD+=('--check-consistency') +fi if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then CZ_CMD+=('--changelog-to-stdout') echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME"