Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Version Increments in Release Github Actions #1411

Open
5 tasks
ralikio opened this issue Nov 5, 2024 · 0 comments
Open
5 tasks

Automatic Version Increments in Release Github Actions #1411

ralikio opened this issue Nov 5, 2024 · 0 comments

Comments

@ralikio
Copy link
Member

ralikio commented Nov 5, 2024

Currently, version number in our GA release are inputed by hand. This is prone to mistakes if we incremented minor version but after the release pipelines run we discover that it should have been major increment because of a feature PR. During a release Github Action (GA) invocation we are setting built release version as an input parameter. This parameter is then validated with pull requests (PR) included in this release and a previous release version. If the release contains a pr with kind/feature label then the minor part of the version number needs to be incremented in comparison to the previous release version. Otherwise, only a patch version is allowed to be changed. This behaviour can be changed to introduce automatic version increments based on PRs from the release.

AC

  • remove version input parameter from our release GA,
  • add release steps that populate the parameter internally,
  • calculate the release version based on previous version,
  • increment the previous release - if the release contains kind/feature pr then increment minor number,
  • if the release does not contain kind/feature then increment patch part of the number.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant