Skip to content

Commit f2d9daf

Browse files
pdellarcipreteLee-W
authored andcommitted
feat: add --build-metadata option
1 parent bb4f1df commit f2d9daf

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ jobs:
7272
| `repository` | Repository name to push. Default or empty value represents current github repository | current one |
7373
| `branch` | Destination branch to push changes | Same as the one executing the action by default |
7474
| `prerelease` | Set as prerelease {alpha,beta,rc} choose type of prerelease | - |
75+
| `devrelease` | Non-negative integer for dev. release | - |
76+
| `local_version` | Bump only the local version portion | - |
77+
| `build_metadata` | Specifies additional metadata in the version string, creates a version like `1.1.2+yourmetadata` | - |
7578
| `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'` | - |
7679
| `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` | - |
7780
| `git_redirect_stderr` | Redirect git output to stderr. Useful if you do not want git output in your changelog | `false` |

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ inputs:
5252
description: "Bump only the local version portion"
5353
required: false
5454
default: "false"
55+
build_metadata:
56+
description: Specifies additional metadata in the version string.
57+
required: false
58+
default: ""
5559
changelog:
5660
description: "Create changelog when bumping the version"
5761
default: "true"

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ fi
8888
if [[ $INPUT_GIT_REDIRECT_STDERR == 'true' ]]; then
8989
CZ_CMD+=('--git-output-to-stderr')
9090
fi
91+
if [[ $INPUT_BUILD_METADATA ]]; then
92+
CZ_CMD+=('--build-metadata' "$INPUT_BUILD_METADATA")
93+
fi
9194
if [[ $INPUT_MANUAL_VERSION ]]; then
9295
CZ_CMD+=("$INPUT_MANUAL_VERSION")
9396
fi

0 commit comments

Comments
 (0)