sorend/Git Version
Calculate a semver tag version based on the nearest existing semver tag, current branch, and commit distance. Designed for use in CI/CD release workflows built on GitHub Actions.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| main_branch | Name of the main branch; omits the branch-id suffix from the version on this branch | no | main |
Outputs
| name | description |
|---|---|
| version | The computed version string (e.g. v2.0.0-rc.3-b1234) |