reecetech/Version Increment
Inspects the git tags to determine the current normal version, and returns the next version number
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| scheme | Versioning scheme - semver, calver or conventional_commits (defaults to semver). `conventional_commits` Will parse the last commit message (e.g. the merge commit) to determine the increment type, and supports the following increment types by keyword: - patch (build, chore, ci, docs, fix, perf, refactor, revert, style, test) - minor (feat) - major (any of the above keywords followed by a '!' character, or 'BREAKING CHANGE:' in commit body) | no | semver |
| pep440 | PEP440 compatibility mode - shifts the pre-release version information into build metadata instead | no | false |
| increment | Field to increment - major, minor, or, patch (defaults to patch) If using the `conventional_commits` scheme, this is the default increment if the parsing of the merge commit fails to find conventional commits information Not applicable to `calver` scheme | no | patch |
| release_branch | Specify a non-default branch to use for the release tag (the one without -pre) | no | — |
| use_api | Use the GitHub API to discover current tags, which avoids the need for a git checkout, but requires `curl` and `jq` | no | false |
| tag_prefix | Prefix the tag with a string (defaults to empty string). e.g. if set to `@org/product/` the action will filter by this prefix and return `@org/product/1.2.3` in `prefixed-version` output | no | "" |
Outputs
| name | description |
|---|---|
| current-version | Current normal version detected |
| current-v-version | Current normal version detected, prefixed with a `v` character |
| version | Incremented version calculated |
| v-version | Incremented version calculated, prefixed with a `v` charatcter |
| major-version | Major number of the incremented version |
| minor-version | Minor number of the incremented version |
| patch-version | Patch number of the incremented version |
| pre-release-label | Pre-release label of the incremented version |
| major-v-version | Major number of the incremented version, prefixed with a `v` charatcter |
| minor-v-version | Minor number of the incremented version, prefixed with a `v` charatcter |
| patch-v-version | Patch number of the incremented version, prefixed with a `v` charatcter |
| prefixed-version | Incremented version calculated, including a `tag_prefix` if specified |
| prefixed-v-version | Incremented version calculated, prefixed with a `v` charatcter, and also including a `tag_prefix` if specified |