This action finds the most recent semver tag, and bumps it up depending on the tag #major, #minor, or #patch in the merge comment. Without the tag it will bump up the minor number.
#major #minor #patch
If you name your branch /feature/, when the code is merged to master the action will bump up the minor number instead of the patch number if that is the default.
By default the active will bump up the minor number when the code is merged to master, might be better for you to can change the default to patch, e.g.
DEFAULT_BUMP='patch'
Can add run without creating a tag.
e.g.
DRY_RUN: 'true'
Can add a v prefix e.g. v1.0.0 but default it's without, e.g. 1.0.0.
e.g.
WITH_V: true
If you use release branches, instead of master.
RELEASE_BRANCHES: 'release1,release2'
v1.0.1 or 1.0.1.1
uses: stugit/semver-action@v1
with:
SOURCE: 'some-other-repo-name'
DEFAULT_BUMP: 'patch'
RELEASE_BRANCHES: 'release1,release2'
DRY_RUN: true