gandarez/semver-action

Generate a semantic version based on branch name

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
bumpBump strategy for semantic versioning. Can be `auto`, `major`, `minor`, `patch`. Defaults to `auto`noauto
branching_modelBranching model. Can be `git-flow` or `trunk-based`. Defaults to `git-flow`nogit-flow
patch_regexPatch regex to match branch name for patch increment. Defaults to `(?i)^(.+:)?(bugfix/.+)`no(?i)^(.+:)?(bugfix/.+)
minor_regexFeature regex to match branch name for minor increment. Defaults to `(?i)^(.+:)?(feature/.+)`no(?i)^(.+:)?(feature/.+)
major_regexMajor regex to match branch name for major increment. Defaults to `(?i)^(.+:)?(release/.+)`no(?i)^(.+:)?(release/.+)
build_regexBuild regex to match branch name for build increment. Defaults to `(?i)^(.+:)?((doc(s)?|misc)/.+)`no(?i)^(.+:)?((doc(s)?|misc)/.+)
hotfix_regexHotfix regex to match branch name for patch increment. Defaults to `(?i)^(.+:)?(hotfix/.+)`no(?i)^(.+:)?(hotfix/.+)
exclude_regexRegex to exclude branches from semantic versioningno""
include_tag_patternGlob pattern to include tags when looking up the latest tag (passed to git --match/--list). Defaults to empty (no filter)no""
exclude_tag_patternGlob pattern to exclude tags when looking up the latest tag (passed to git --exclude). Defaults to empty (no filter)no""
base_versionVersion to use as base for the generation, skips version bumpsno
prefixPrefix used to prepend the calculated semantic version. Defaults to `v`nov
prerelease_idText representing the pre-release identifier. Defaults to `pre`nopre
main_branch_nameThe main branch name. Defaults to `master`nomaster
develop_branch_nameThe develop branch name. In trunk-based model this is ignored. Defaults to `develop`nodevelop
repo_dirThe repository path. Defaults to current directoryno.
debugEnable debug mode. Defaults to `false`nofalse
namedescription
semver_tagThe calculdated semantic version
is_prereleaseTrue if calculated semantic version is pre-release. For trunk-based model it is always `false`
previous_tagThe tag used to calculate next semantic version
ancestor_tagThe ancestor tag based on specific pattern. For trunk-based model it is always empty