Skip to content

fix: normalize version input by stripping leading 'v' or 'V' prefix in release workflow#337

Merged
from2001 merged 2 commits intodevelopfrom
refactor/remove-v
Feb 14, 2026
Merged

fix: normalize version input by stripping leading 'v' or 'V' prefix in release workflow#337
from2001 merged 2 commits intodevelopfrom
refactor/remove-v

Conversation

@from2001
Copy link
Collaborator

This pull request improves the version handling logic in the .github/workflows/release-workflow.yml file. The main change is the normalization of the version input by stripping any leading 'v' or 'V' characters, ensuring consistent semantic versioning throughout the workflow. The normalized version is then used in all subsequent steps, reducing redundancy and potential errors.

Version normalization and usage improvements:

  • Added logic to strip leading 'v' or 'V' from the version input and export the normalized value as an environment variable for use in later steps.
  • Updated all workflow steps to use the normalized VERSION environment variable instead of referencing github.event.inputs.version directly, ensuring consistency across version updates in package.json, version.txt, pyproject.toml, markdown files, commit messages, release tags, and summary steps. [1] [2] [3] [4] [5] [6] [7]

Copy link
Contributor

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 PR improves version handling in the release workflow by introducing normalization of version inputs. The workflow now strips any leading 'v' or 'V' prefix from the version input and uses the normalized version consistently throughout all steps, reducing code redundancy and potential errors.

Changes:

  • Added version normalization logic that strips leading 'v' or 'V' characters and exports the normalized version as a GITHUB_ENV variable
  • Replaced all direct references to github.event.inputs.version with the normalized $VERSION environment variable across all workflow steps
  • Cleaned up trailing whitespace throughout the workflow file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@from2001 from2001 merged commit 5650f05 into develop Feb 14, 2026
@from2001 from2001 deleted the refactor/remove-v branch February 14, 2026 19:28
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

Successfully merging this pull request may close these issues.

2 participants