actions-marketplace-validations/Get tag and version
A simple action to get the last or next tag/version to use in other actions.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| fallback | Fallback tag/version to use when no previous tag can be found. May include a valid prefix, but may also exclude it. | no | 0.0.0 |
| increment | Increment the version number by one digit. Possible values are "major", "minor", "patch", "build" and "suffix". | no | false |
| tag | Tag ref to use. Will omit the searching stage and use the supplied tag ref if its a valid match. | no | "" |
| branch | Only search for for tags on the currently selected branch. | no | false |
| prefix | The prefix to search for, and will be set for the new tags if auto-increment is enabled. | no | v |
| prefixRegex | Optional. A regex sub-pattern to match multiple prefixes while looking for a match. Must also match the given prefix. | no | "" |
| suffix | Optional. An optional suffix to search for, and will be set for new tags if auto-increment is enabled. | no | "" |
| suffixRegex | Optional. A regex sub-pattern to match multiple suffixes while looking for a match. Must also match the given suffix. | no | "" |
Outputs
| name | description |
|---|---|
| tag | The full tag with the prefix, version and suffix combined. |
| prefix | The tag prefix. |
| suffix | The tag suffix. |
| version | The full version, with build number. |
| version_major | The major version number. |
| version_minor | The minor version number. |
| version_patch | The patch version number. |
| version_build | The build version number. |