From f2c0d3f0b0e07662e8b6003d40292c147ddd970c Mon Sep 17 00:00:00 2001 From: Qin Li Date: Tue, 4 Oct 2022 18:00:35 +0800 Subject: [PATCH] feat: add `check-consistency` option --- action.yml | 4 ++++ entrypoint.sh | 3 +++ 2 files changed, 7 insertions(+) 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"