4source/version-control

Bump versions bases on labels.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jun 25, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: 4source/version-control-action@b90f6c9a6693ece5a36c0958c141dca7f1338b60 # v1.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenThe token to use to access the GitHub APIyes
ownerThe owner of the repository.yes
repositoryThe repository name.yes
pr_numberThe number of the pull request.no
version_increaseThe increase of the version major/minor/patchno
label_majorThe name of the label that will trigger a major version change. (default: `major`)nomajor
label_minorThe name of the label that will trigger a minor version change. (default: `minor`)nominor
label_patchThe name of the label that will trigger a patch version change. (default: `patch`)nopatch
label_betaThe name of the label that will trigger a beta version change. (default: `beta`)nobeta
label_alphaThe name of the label that will trigger a alpha version change. (default: `alpha`)noalpha
label_docsThe name of the label that will trigger a docs version change. (default: `docs`)nodocumentation
tag_prefixA prefix to the tag name (default: `v`).nov
dry_runDo not perform taging, just calculate next version, then exitnofalse
namedescription
new_tagGenerated tag
new_versionGenerated tag without the prefix