diff --git a/README.md b/README.md index 8ccb4c2..ad717cf 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ jobs: | `repository` | Repository name to push. Default or empty value represents current github repository | current one | | `branch` | Destination branch to push changes | Same as the one executing the action by default | | `prerelease` | Set as prerelease {alpha,beta,rc} choose type of prerelease | - | +| `devrelease` | Non-negative integer for dev. release | - | +| `local_version` | Bump only the local version portion | - | +| `build_metadata` | Specifies additional metadata in the version string, creates a version like `1.1.2+yourmetadata` | - | | `extra_requirements` | Custom requirements, if your project uses a custom rule or plugins, you can specify them separated by a space. E.g: `'commitizen-emoji conventional-JIRA'` | - | | `changelog_increment_filename` | Filename to store the incremented generated changelog. This is different to changelog as it only contains the changes for the just generated version. Example: `body.md` | - | | `git_redirect_stderr` | Redirect git output to stderr. Useful if you do not want git output in your changelog | `false` | diff --git a/action.yml b/action.yml index f6f715f..16c3985 100644 --- a/action.yml +++ b/action.yml @@ -52,6 +52,10 @@ inputs: description: "Bump only the local version portion" required: false default: "false" + build_metadata: + description: Specifies additional metadata in the version string. + required: false + default: "" changelog: description: "Create changelog when bumping the version" default: "true" diff --git a/entrypoint.sh b/entrypoint.sh index 3121bad..5abe71c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -88,6 +88,9 @@ fi if [[ $INPUT_GIT_REDIRECT_STDERR == 'true' ]]; then CZ_CMD+=('--git-output-to-stderr') fi +if [[ $INPUT_BUILD_METADATA ]]; then + CZ_CMD+=('--build-metadata' "$INPUT_BUILD_METADATA") +fi if [[ $INPUT_MANUAL_VERSION ]]; then CZ_CMD+=("$INPUT_MANUAL_VERSION") fi