diff --git a/README.md b/README.md index 308ed3c..5b940b9 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ jobs: | `commitizen_version` | Specify the version to be used by commitizen. Eg: `2.21.0` | latest | | `changelog` | Create changelog when bumping the version | true | | `no_raise` | Don't raise the given comma-delimited exit codes (e.g., no_raise: '20,21'). Use with caution! Open an issue in [commitizen](https://github.com/commitizen-tools/commitizen/issues) if you need help thinking about your workflow. | [21](https://commitizen-tools.github.io/commitizen/exit_codes/) | +| `increment` | Manually specify the desired increment {MAJOR,MINOR,PATCH} | - | ## Outputs diff --git a/action.yml b/action.yml index fed8d32..9f76626 100644 --- a/action.yml +++ b/action.yml @@ -62,3 +62,6 @@ inputs: description: "Don't raise the given comma-delimited exit codes" required: false default: '21' + increment: + description: "Manually specify the desired increment" + required: false diff --git a/entrypoint.sh b/entrypoint.sh index 3146a46..5ddd3c1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,6 +43,9 @@ fi if [[ $INPUT_COMMIT == 'false' ]]; then CZ_CMD+=('--files-only') fi +if [[ $INPUT_INCREMENT ]]; then + CZ_CMD+=('--increment' "$INPUT_INCREMENT") +fi if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then CZ_CMD+=('--changelog-to-stdout') echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME"