-
Notifications
You must be signed in to change notification settings - Fork 494
ci: automate pre- and post-release version bump to include -DEV in main #3583 #3586
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
ci: automate pre- and post-release version bump to include -DEV in main #3583 #3586
Conversation
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR automates the pre- and post-release version management process to ensure the main branch always contains a development version with a -DEV
suffix, providing clear distinction between released and development builds.
- Adds a manual pre-release workflow that removes
-DEV
suffix and creates release tags - Adds an automated post-release workflow that bumps to the next development version
- Updates the current version from
1.22.0
to1.23.0-DEV
to demonstrate the new format
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
File | Description |
---|---|
api/include/opentelemetry/version.h |
Updates version from 1.22.0 to 1.23.0-DEV with explanatory comment |
.github/workflows/pre-release.yml |
Manual workflow to prepare clean release versions and create tags |
.github/workflows/post-release-bump.yml |
Automated workflow to bump version to next development build after releases |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
e82a546
to
704cfa1
Compare
Error Correction
Fixes # (#3583)
Problem
Currently, after a release, the
main
branch version remains the same as the last release (e.g.,1.22.0
).This creates ambiguity over whether a build from
main
is:Changes
Proposed Solution
Automate the post-release version bump so that the
main
branch always reflects a development build with a-DEV
suffix.Implementation
New Pre-Release Workflow (
.github/workflows/pre-release.yml
)-DEV
suffix frominclude/opentelemetry/version.h
.main
.vX.Y.Z
).New Post-Release Workflow (
.github/workflows/post-release.yml
)vX.Y.Z
) is pushed.include/opentelemetry/version.h
to that next version with a-DEV
suffix.main
.version.h
UpdateExample after release of
1.22.0
→ bumped to:Benefits
Files Added:
.github/workflows/pre-release.yml
.github/workflows/post-release.yml
Files Updated:
include/opentelemetry/version.h
Checklist:
CHANGELOG.md
updated for non-trivial changes