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

Add action for bumping version on release #8048

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

stdevMac
Copy link
Member

Fixes #4794

Changes

  • Added new GitHub Action workflow to automatically bump version on master after release branch creation
  • The workflow triggers when a new release/* branch is created
  • Automatically increments the minor version and adds -unstable suffix
  • Creates a pull request instead of direct push to master for better review process
  • Handles all version types correctly:
    • Regular releases (e.g., release/1.31.0 -> 1.32.0-unstable)
    • Major releases (e.g., release/2.0.0 -> 2.1.0-unstable)
    • Patch releases (e.g., release/1.30.3 -> 1.31.0-unstable)

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Build-related changes
  • Refactoring
  • Documentation update
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

The workflow should be tested by:

  1. Creating a test release branch
  2. Verifying that a PR is created automatically
  3. Checking that the version is bumped correctly in Directory.Build.props
  4. Verifying the PR content and format

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

Remarks

This automation will help maintain consistent version numbering across releases and development branches, reducing manual intervention and potential human error in version management.

@stdevMac stdevMac requested review from rubo and a team as code owners January 14, 2025 11:20
@stdevMac stdevMac self-assigned this Jan 14, 2025
@stdevMac stdevMac requested a review from kamilchodola January 14, 2025 11:20
Copy link
Contributor

@rubo rubo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Minor revisions
  • Created the label; otherwise, the creation of PR fails
  • Tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants