Skip to content

Ignore major/minor patterns #149

@Levelleor

Description

@Levelleor

Hey, this is a great action and flexibility is great but I wonder if there's a way to make it work in my case.

I have a release-flow based on branches and there may be branches called v1 or v1.1 in my repo. This will be a release branch to which a tag v1 will be attached later to point to latest stable release. The thing is I want to avoid accidentally jumping to major or minor increments when these are used. It would make no sense for the v1 branch to have a v2.0 release and same for v1.1 to have v1.4 attached to it. For v2 or v1.4 there will be new branches created when we reach to those releases.

So I used the new version_from_branch input and it did detect the version available in the branch but if I use (MAJOR) inside any commit it starts to treat the version as a majorly incremented. I tried setting the patterns to "" nothing basically but that doesn't change the behaviour for some reason, I still got a major increment.

Any way to get to force it to only create minor/patch, only patch in the current state?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions