cosontech/Calculate version numbers
Calculate semantic and build versions of your solutions during GitHub workflow execution
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | GitHub Token | yes | — |
| major-number | Version - Major Number | yes | 1 |
| minor-number | Version - Minor Number | yes | 0 |
| prerelease-custom-identifier | Version - Custom Pre-Release Identifier (default: "alpha" on dev & development branches, "beta" on staging & uat branches, none on main & master branches, "tmp" on others branches) | no | — |
| force-finale-version | Set "true" to force the action to calculate a finale version number (without pre-relase identifier and number) even if the current branch is not main or master | no | false |
Outputs
| name | description |
|---|---|
| semVersion | Calculated semantic version number (x.y.z) |
| buildVersion | Calculated build version number (x.y.z.0) |
| dockerTag | Suggested docker tag ("latest" if branch is main or master, otherwise the name of the branch) |