Conversation
Updates the major version to point to the latest published tag with the same major tag Example: v2.2.0 exists v2 is currently pointed to v2.2.0 release happens v2.3.0 is created this action will point v2 at the new v2.3.0 Signed-off-by: jmeridth <jmeridth@gmail.com>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request implements a new GitHub Actions workflow to update the major version tag to point to the latest published tag. Key changes include:
- Adding a test workflow to trigger the major version updater.
- Creating a standalone major version updater workflow that extracts the major version from a tag and force-pushes the update.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/test-major-version-updater.yaml | Introduces a test workflow that triggers on release and workflow_dispatch events and passes a tag name input. |
| .github/workflows/major-version-updater.yaml | Implements the logic to extract tag details and update the major version tag accordingly. |
Comments suppressed due to low confidence (2)
.github/workflows/test-major-version-updater.yaml:14
- [nitpick] The job identifier 'labeler' is not descriptive of its purpose as it invokes the major version updater workflow. Consider renaming it to a more descriptive name such as 'major_version_update'.
labeler:
.github/workflows/major-version-updater.yaml:20
- Ensure that the 'inputs.tag_name' value provided always contains the expected format (e.g. with the 'refs/tags/' prefix) for the checkout to work correctly, or add normalization to handle different formats.
ref: ${{ inputs.tag_name }}
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
zkoppert
approved these changes
Apr 7, 2025
Contributor
zkoppert
left a comment
There was a problem hiding this comment.
One comment, non blocking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the major version to point to the latest published tag with the same major tag
Example:
v2.2.0 exists
v2 is currently pointed to v2.2.0
release happens
v2.3.0 is created
this action will point v2 at the new v2.3.0
I did take a look at https://github.com/actions/publish-action but it has a known permission issue