Skip to content

fix: Fix tag validation regex in deploy.yml - #954

Merged
sbansla merged 1 commit into
mainfrom
fix-tag-validation
Aug 11, 2026
Merged

fix: Fix tag validation regex in deploy.yml#954
sbansla merged 1 commit into
mainfrom
fix-tag-validation

Conversation

@kridai

@kridai kridai commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Fixes

A short description of what this PR does.

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

@sbansla
sbansla merged commit 306691e into main Aug 11, 2026
8 checks passed
@sbansla
sbansla deleted the fix-tag-validation branch August 11, 2026 11:26
@kridai
kridai requested a lite review from Copilot August 11, 2026 11:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the release workflow’s tag validation logic in .github/workflows/deploy.yml, intended to ensure pushed tags match the package version before publishing to PyPI.

Changes:

  • Modified the tag regex validation and error message to require X.Y.Z tags (instead of vX.Y.Z).
  • Adjusted how the version string is derived from the tag before comparing against setup.py --version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +84 to +88
if [[ ! "$TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "::error::Release tag must be in the form 1.2.3 (got '$TAG')"
exit 1
fi
VERSION="${TAG#v}"
VERSION="${TAG#}"
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.

3 participants