nerdtronik/Automatic Versioning Tag

Calculate your next version tag based on file changes automatically using SemVer v2.0.0 syntax

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
target-commitCommit to compare changes against (usually branch merging to)no${{ github.event.pull_request.base.sha || github.event.before }}
source-commitCommit to compare changes to target-commit (usually pr branch to merge)no${{ github.event.pull_request.head.sha || github.event.after }}
patch-limitTop how many % of changes limit to increase a patch version vA.B.(C+1)10
minor-limitTop how many % of changes limit to increase a minor version vA.(B+1).C75
directoryBase directory to check the changes.
excludeList of files, paths, patterns (./*path*) to exclude from changes checking (comma separated)""
includeList of files, paths, patterns (./*path*) to include only for changes checking (comma separated)""
exclude-gitignoreParse gitignore files to exlude comparing files based on the content of those gitinores (default true)true
v-prefixInclude the 'v' prefix in the version tag: vA.B.Ctrue
is-alphaMark this version as an alphafalse
is-betaMark this version as a betafalse
is-rcMark this version as a release candidatefalse
is-draftMark this version as a draftfalse
is-prereleaseMark this version as a prereleasefalse
alpha-keyText to put if the version is alpha (default 'alpha')alpha
beta-keyText to put if the version is beta (default 'beta')beta
rc-keyText to put if the version is rc (default 'rc')rc
debugShow debug messagesfalse
create-tagCreate release tag after calculating ittrue
create-major-tagCreate release major tag after calculating it. (Ex. v3)true
create-minor-tagCreate release minor tag after calculating it. (Ex. v3.1)true
create-latest-tagCreate release latest tag after calculating ittrue
prerelease-tagPrerelease tag to add at the end of the version tag""
build-metadataBuild metadata to add at the end of the version tag""
prerelease-separatorSeparator for the prerelease tag (A.B.C<sep>tag), defaults to '-'-
build-separatorSeparator for the build-metadata tag (A.B.C<sep>tag), defaults to '+'+
version-separatorSeparator for the version tag (A<sep>B<sep>C), defaults to '.'.
github-tokenGithub Token to create the tag at the end of the process (required if want to create tag at the end)${{ github.token }}
namedescription
versionversion string
majorVersion major number
minorVersion minor number
patchVersion patch number
prereleaseVersion prerelease info
build-metadataVersion build-metadata info
files-changedHow many files were changed between commits
files-addedHow many files were added between commits
files-removedHow many files were removed between commits
insertionsHow many lines were added between commits
deletionsHow many lines were removed between commits
max-change-percentageThe maximum change percentage between commits
min-change-percentageThe minimum change percentage between commits
avg-change-percentageThe average change percentage between commits
cumulative-change-percentageThe sum of all change percentages between commits