workflow is to automatically increment the version & update the changelog any time a pull request is merged (with appropriate labels).
This workflow is triggered by a pull request closed event on the main
branch. The pull request is checked for any of the following labels: major
, minor
or patch
. If so, it will increment either major, minor or patch, update the changelog and then tag this commit with the new version number.
flowchart TD
trigger[Pull Request Trigger]
checkout[Checkout]
getInc["Get Increment Type Depends on Labels (major, minor, or patch)"]
bumpChangelog[Bump Changelog & Commit]
tag[Tag the Commit]
push[Push]
class trigger internal-link;
trigger --> checkout --> getInc --> bumpChangelog --> tag --> push