bullrich/Commit Autotag

Automatically generate new tags for new versions. Supports several tagging strategies.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Dec 20, 2021
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: bullrich/commit-autotag@365442a73444d9b59ae92b051e19f4b4281f42fa # v1.0.1

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

namedescriptionrequireddefault
rootAutotag will look for the appropriate file in in this location (relative to project root).no./
head_branchHead branch to compare changes. It uses master by defaultnomaster
strategyOptions include 'package' (for package.json), 'docker' (for Dockerfile), and 'regex' to extract from an arbitrary file. This does not need to be specified if the "regex_pattern" property is provided.nopackage
tag_prefixBy default, package.json uses semantic versioning, such as "1.0.0". A prefix can be used to add text before the tag name. For example, if tag_prefx is set to "v", then the tag would be labeled as "v1.0.0".no
tag_suffixText which is applied to the end of the tag.no
tag_messageThis is the annotated commit message associated with the tag. By default, a changelog will be generated from the commits between the latest tag and the new tag (HEAD). This will override that with a hard-coded message.no
commit_message_templateThe commit message template (per commit). Default is `{{number}}) {{message}} ({{author}}) SHA: {{sha}} `no
versionExplicitly set the version here instead of automatically detecting from `package.json`. Useful for non-JavaScript projects where version may be output by a previous action.no
regex_patternAn optional attribute containing the regular expression used to extract the version number.no
namedescription
tagnameReturns the new tag value. Empty if a tag is not created.
tagshaThe SHA of the new tag.
taguriThe URI/URL of the new tag reference.
tagmessageThe messge applied to the tag reference (this is what shows up on the tag screen on Github).
tagcreatedA true or false, indicating a new tag was created.
tagrequestedThe name of the requested tag. This will be populated even if the tag is not created.
versionThe version, as defined in package.json or explicitly set in the input.
prereleasetrue or false, indicating the tag represents a semantic version pre-release.
buildtrue or false, indicating the tag represents a semantic version build.