Conversation
There was a problem hiding this comment.
Pull request overview
This PR restricts the release workflow to trigger only on specific semantic version tags by replacing the wildcard pattern v* with a more restrictive regex pattern.
Changes:
- Updated the tag filter pattern from
v*(which matches any tag starting with 'v') tov[0-9]*.[0-9]*.[0-9]*to match only semantic version tags (e.g., v1.0.0)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/release.yml
Outdated
| push: | ||
| tags: | ||
| - 'v*' # only publish on version tags (e.g. v1.0.0) | ||
| - 'v[0-9]*.[0-9]*.[0-9]*' # only publish on version tags (e.g. v1.0.0) |
There was a problem hiding this comment.
The pattern [0-9]* allows for zero or more digits, which means it would match tags like v.. or v1.. (with no digits between dots). Consider using [0-9]+ instead to require at least one digit for each version component, ensuring only valid semantic version tags like v1.0.0 trigger the workflow.
| - 'v[0-9]*.[0-9]*.[0-9]*' # only publish on version tags (e.g. v1.0.0) | |
| - 'v[0-9]+.[0-9]+.[0-9]+' # only publish on version tags (e.g. v1.0.0) |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.