-
Is it possible to automatically bump minor version if executed from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In general this action looks at commits and not branch names, the only exception being when the "version from branch" option is enabled. You can create multiple GitHub Actions workflows for different branches:
You could also just check the branch name in the action itself with some custom code and pass the configuration variables into the action. At the moment there is not a clean way to override the type of commit. You could set up the action that runs on the master branch with a For version 6 I am planning to allow you to override the values that are calculated from the Git repo using parameters, so you would be able to do something like set |
Beta Was this translation helpful? Give feedback.
In general this action looks at commits and not branch names, the only exception being when the "version from branch" option is enabled. You can create multiple GitHub Actions workflows for different branches:
You could also just check the branch name in the action itself with some custom code and pass the configuration variables into the action.
At the moment there is not a clean way to override the type of commit. You could set up the action that runs on the master branch with a
minor_pattern
that always matches, but you'd need to set a tag in that case if you want that to reflect on both branches because if you usedbump_each_commit
each branch…