p6m-actions/Git Cut Tag
Language-agnostic semantic-version tagging driven by the latest git tag and a version-line file, with optional timestamped pre-release tags
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version-file | Path to the version-line file. Holds '<prefix><major>.<minor>' (e.g. 'v1.2'). The prefix is inferred from its contents unless 'prefix' is set. The file is read-only; the maintainer owns it. | no | .version |
| version-level | Version level to bump relative to the latest tag: patch, minor, or major | no | patch |
| prefix | Override the tag prefix (e.g. 'v'). When empty, the prefix is inferred from the version file's leading non-digit characters. | no | "" |
| pre-release | Build a pre-release tag with a trailing epoch timestamp (e.g. 'v1.2.5-1782043845'). | no | false |
| working-directory | Directory to operate in (must contain the version file and be inside the git repo) | no | . |
| skip-push | Skip pushing the tag to the remote (useful for testing) | no | false |
Outputs
| name | description |
|---|---|
| version | The new version, without prefix (e.g. '1.2.5' or '1.2.5-1782043845') |
| tag | The created git tag, with prefix (e.g. 'v1.2.5') |
| base-version | The release version without any pre-release suffix (e.g. '1.2.5') |
| is-pre-release | 'true' when a pre-release tag was created |