actions-marketplace-validations/Sync release version.
Update files that reference a project version with a new release number.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| current_version | The current project version (Default: The last git tag). | no | — |
| new_version | The next project version (Default: The new git tag). | no | — |
| paths | A list of file names to search and replace versions. | yes | — |
| pattern | The pattern to match the location that needs to be updated. | no | "" |
| only_major | Only update the major version number. | no | false |
| strip_prefix | Prefix to strip from the tag. For example if `strip_prefix` is set to `v` and the tag is `v1.0.0` the output becomes `1.0.0`. | no | "" |
| use_tag_commit_hash | When true, uses commit hash in the replacement pattern. For example, replaces `hash # v1` with `hash # v2`. | no | false |
Outputs
| name | description |
|---|---|
| is_initial_release | Boolean indicating an initial release. |
| new_version | The current project version |
| old_version | The previous project version |
| major_update | Boolean indicating a major version bump |