This enables users to add a branch as input to this action. When passed this branch will be used when updating the versions in maven. By default this branch will be the default branch of the repository (similar to the old behaviour).
This change gives users more freedom over their release process. For instance, if I want to support multiple versions and have different branches for managing this.
Imagine the following branches:
main
stable/1.0
stable/1.1
When I want to do a patch release on version 1.0, I want the versions to be updated on the stable/1.0 branch. I'd set the branch input to stable/1.0 to achieve this.
Without this change making a new patch release for version 1.0 will result in an update of the main branch. Where the versions would've been 1.1 before, they'd be updated to 1.0 because of this patch.
Thank you so much for this wonderful contribution! LGTM! I'll let another team member know about this issue and once we have another approval, we can get this merged!
This enables users to add a branch as input to this action. When passed this branch will be used when updating the versions in maven. By default this branch will be the default branch of the repository (similar to the old behaviour).
This change gives users more freedom over their release process. For instance, if I want to support multiple versions and have different branches for managing this.
Imagine the following branches:
When I want to do a patch release on version 1.0, I want the versions to be updated on the stable/1.0 branch. I'd set the
branch
input tostable/1.0
to achieve this. Without this change making a new patch release for version 1.0 will result in an update of the main branch. Where the versions would've been 1.1 before, they'd be updated to 1.0 because of this patch.