A Github Action to use the bumpversion application to bump and tag branches
name: Bump version
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
uses: jaumann/github-bumpversion-action@v0.0.7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true
Environment Variables
minor
).new_tag
and tag
in subsequent steps. Possible values are true
and false
(default).Note: This action creates a lightweight tag.
Manual Bumping: Any commit message that includes #major
, #minor
, or #patch
will trigger the respective version bump. If two or more are present, the highest-ranking one will take precedence.
Automatic Bumping: If no #major
, #minor
or #patch
tag is contained in the commit messages, it will bump whichever DEFAULT_BUMP
is set to (which is patch
by default).
Note: This action will not bump the tag if the
HEAD
commit has already been tagged.
master
, the action will:
#major
or #minor
anotherNick/github-tag-action - I used this repo extensively as a base for this project