step-security/GitHub Tag

Bump and push git tag on merge

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github_tokenRequired for permission to tag the repo.yes
default_bumpWhich type of bump to use when none explicitly provided when commiting to a release branch (default: `patch`).nopatch
default_prerelease_bumpWhich type of bump to use when none explicitly provided when commiting to a prerelease branch (default: `prerelease`).noprerelease
tag_prefixA prefix to the tag name (default: `v`).nov
append_to_pre_release_tagA suffix to a pre-release tag name (default: `<branch>`).no
custom_tagCustom tag name. If specified, it overrides bump settings.no
custom_release_rulesComma separated list of release rules. Format: `<keyword>:<release_type>`. Example: `hotfix:patch,pre-feat:preminor`.no
release_branchesComma separated list of branches (bash reg exp accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any tag. Examples: `master` or `.*` or `release.*,hotfix.*,master`...nomaster,main
pre_release_branchesComma separated list of branches (bash reg exp accepted) that will generate pre-release tags.no
commit_shaThe commit SHA value to add the tag. If specified, it uses this value instead GITHUB_SHA. It could be useful when a previous step merged a branch into github.ref.no
create_annotated_tagBoolean to create an annotated tag rather than lightweight.nofalse
fetch_all_tagsBoolean to fetch all tags for a repo (if false, only the last 100 will be fetched).nofalse
dry_runDo not perform tagging, just calculate next version and changelog, then exit.nofalse
namedescription
new_tagGenerated tag
new_versionGenerated tag without the prefix
previous_tagPrevious tag (or `0.0.0`)
previous_versionThe value of the previous tag (or 0.0.0 if none) without the prefix. Note that if custom_tag is set, this will be undefined.
release_typeThe computed release type (`major`, `minor`, `patch` or `custom` - can be prefixed with `pre`)
changelogThe conventional changelog since the previous tag