im-open/git-version-lite
An action to calculate the next tag for the repository based on commit messages.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| calculate-prerelease-version | Flag indicating whether to calculate a pre-release version rather than a release version. Accepts: true|false. | no | false |
| branch-name | The name of the branch the tag is being generated for. Required when calculating the pre-release version. | no | — |
| tag-prefix | By default the action strips the prefixes off, but any value provided here will be prepended to the next calculated version. | no | v |
| fallback-to-no-prefix-search | Flag indicating whether it should fallback to a prefix-less search if no tags are found with the current prefix. Helpful when starting to use prefixes with tags. Accepted values: true|false. | no | true |
| default-release-type | The default release type that should be used when no tags are detected. Defaults to major. Accepted values: major|minor|patch | no | major |
Outputs
| name | description |
|---|---|
| NEXT_VERSION | The calculated next version. |
| NEXT_VERSION_NO_PREFIX | The calculated next version without the tag prefix. |
| NEXT_MINOR_VERSION | The next major.minor version. |
| NEXT_MINOR_VERSION_NO_PREFIX | The next major.minor version without the tag prefix. |
| NEXT_MAJOR_VERSION | The next major version. |
| NEXT_MAJOR_VERSION_NO_PREFIX | The next major version without the tag prefix. |
| PRIOR_VERSION | The previous major.minor.patch version. |
| PRIOR_VERSION_NO_PREFIX | The previous major.minor.patch version without the tag prefix. |
| NEXT_RELEASE_VERSION | The calculated next release version. This version will not contain the branch when calculating a pre-release version. |
| NEXT_RELEASE_VERSION_NO_PREFIX | The calculated next release version without the tag prefix. This version will not contain the branch when calculating a pre-release version. |