4source/version-control
Bump versions bases on labels.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 25, 2024
- License
- MIT
Pinned Snippet
uses: 4source/version-control-action@b90f6c9a6693ece5a36c0958c141dca7f1338b60 # v1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | The token to use to access the GitHub API | yes | — |
| owner | The owner of the repository. | yes | — |
| repository | The repository name. | yes | — |
| pr_number | The number of the pull request. | no | — |
| version_increase | The increase of the version major/minor/patch | no | — |
| label_major | The name of the label that will trigger a major version change. (default: `major`) | no | major |
| label_minor | The name of the label that will trigger a minor version change. (default: `minor`) | no | minor |
| label_patch | The name of the label that will trigger a patch version change. (default: `patch`) | no | patch |
| label_beta | The name of the label that will trigger a beta version change. (default: `beta`) | no | beta |
| label_alpha | The name of the label that will trigger a alpha version change. (default: `alpha`) | no | alpha |
| label_docs | The name of the label that will trigger a docs version change. (default: `docs`) | no | documentation |
| tag_prefix | A prefix to the tag name (default: `v`). | no | v |
| dry_run | Do not perform taging, just calculate next version, then exit | no | false |
Outputs
| name | description |
|---|---|
| new_tag | Generated tag |
| new_version | Generated tag without the prefix |