christophebedard/Tag version commit
tag commits whose title matches a version regex
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token, required for permission to create a tag. | yes | — |
| version_regex | The version regex to use for detecting version in commit messages. The regex has to contain either 0 or 1 capture group. | no | ^[0-9]+\.[0-9]+\.[0-9]+$ |
| version_assertion_command | Command to run to validate the version, e.g. compare against a version file. Use "$version" in the command and it will be replaced by the new version, without the prefix. | no | "" |
| version_tag_prefix | A prefix to prepend to the detected version number to create the tag (e.g. "v"). | no | "" |
| commit | Commit SHA to use for checking version. HEAD commit will be used if the value is empty (default). | no | "" |
| check_entire_commit_message | Check the entire commit message, not just the title, for a matching version. | no | false |
| annotated | Whether to create an annotated tag, using the commit body as the message. | no | false |
| dry_run | Do everything except actually create the tag. | no | false |
Outputs
| name | description |
|---|---|
| tag | The tag that has been created, or an empty string or not tag was created. |
| message | The message of the tag that has been created, if annotated. |
| commit | The commit that was tagged, or an empty string or not tag was created. |