Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: major version updater #55

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

Merged
merged 1 commit into from
Apr 7, 2025
Merged

feat: major version updater #55

merged 1 commit into from
Apr 7, 2025

Conversation

jmeridth
Copy link
Member

@jmeridth jmeridth commented Apr 4, 2025

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

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 <[email protected]>
@Copilot Copilot AI review requested due to automatic review settings April 4, 2025 06:52
@jmeridth jmeridth requested a review from a team as a code owner April 4, 2025 06:52
Copy link

@Copilot Copilot AI left a 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 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

Copy link
Member

@zkoppert zkoppert left a comment

Choose a reason for hiding this comment

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

One comment, non blocking

@jmeridth jmeridth merged commit 10cfc2f into main Apr 7, 2025
8 checks passed
@jmeridth jmeridth deleted the jm_major_version_udpater branch April 7, 2025 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants