Skip to content

Commit 8ebdade

Browse files
authored
Merge pull request #38 from edgarrmondragon/feat-add-increment-option
2 parents 32e8907 + 5a68211 commit 8ebdade

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
| `commitizen_version` | Specify the version to be used by commitizen. Eg: `2.21.0` | latest |
8181
| `changelog` | Create changelog when bumping the version | true |
8282
| `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/) |
83+
| `increment` | Manually specify the desired increment {MAJOR,MINOR,PATCH} | - |
8384

8485
## Outputs
8586

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,6 @@ inputs:
6262
description: "Don't raise the given comma-delimited exit codes"
6363
required: false
6464
default: '21'
65+
increment:
66+
description: "Manually specify the desired increment"
67+
required: false

entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ fi
4343
if [[ $INPUT_COMMIT == 'false' ]]; then
4444
CZ_CMD+=('--files-only')
4545
fi
46+
if [[ $INPUT_INCREMENT ]]; then
47+
CZ_CMD+=('--increment' "$INPUT_INCREMENT")
48+
fi
4649
if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then
4750
CZ_CMD+=('--changelog-to-stdout')
4851
echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME"

0 commit comments

Comments
 (0)