Releases: anothrNick/github-tag-action
Releases · anothrNick/github-tag-action
Initial version, Part, and new release checking
- Initial version (optional) parameter
- 'Part' output which describes which part of the version was bumped (patch, minor, major)
- Use checked out branch for release checking
Read Full Commit Message
Reads full commit message, not just title, for version bump level (patch, minor, major).
Dry run option
Merge pull request #48 from phish108/master Adding DRY_RUN feature that fixes #47
Retrieve latest semvar tag in order
- Use the git for-each-ref command to extract the last semver tag in order, and only if it actually looks like a semver.
- If semver fails at generating a new tag, don't just add v or $pre_release to an empty string.
Custom tag option
Merge pull request #29 from imdanielsp/master Add an Explicit Example of Optional Env Var
Create pre-release tags for Pull Requests
This lets the user define that only the master branch should be tagged.
Other branches or pull requests will compute a new version number (bumped as usual). But the version will be marked as a pre-release thanks to the pre-release postfix. So, instead of computing 1.2.3, the script will compute 1.2.3-1a2b3c4 and the next revision of the Pull Request (or feature branch build) will compute a similar version 1.2.3-2b3c4d5 (since no tag was put and supposedly master did not evolve in the meantime).
Set Action Output
- Sets the new tag as an action output of
new_tag
Script improvements
- Tag version with v character (optional)
- Dynamically get repo name, remove need for manual config of
REPO_OWNER
- Get refs api URL from event payload
Skip version bump if commit already tagged
- Skips if commit is already tagged (#11)
- Adds customizable
DEFAULT_BUMP
config, defaults to minor.
1.4.0 Use Alpine docker image to reduce Action runtime.
- Use prontotools/alpine-git-curl docker image
** Runtime from ~1m 30s to ~48s