Fix deploy_release.yml tag pattern to trigger on version tags #590
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.
Overview:
The
deploy_release.ymlworkflow was not triggering on version tags likev2.1.1due to an incorrect filter pattern. The pattern'^v[0-9]+.[0-9]+.[0-9]+'used^as a negation operator (matching tags that do NOT match the pattern) and unescaped dots (matching any character instead of literal dots).Addresses:
This addresses the workflow trigger issue for semantic version tags.
Type of Fix:
Solution:
Changed the tag filter pattern from
'^v[0-9]+.[0-9]+.[0-9]+'to'v[0-9]+\.[0-9]+\.[0-9]+':^(negation operator in GitHub Actions filters)Changes:
.github/workflows/deploy_release.ymlline 5 with corrected tag patternv2.1.1,v1.0.0,v10.20.30v1a2b3, non-version tagsValidation:
Per GitHub Actions documentation,
^at pattern start negates the match. Workflow will now trigger on push of semantic version tags.Unit Tests:
N/A - workflow configuration change
Configuration details:
GitHub Actions workflow trigger pattern syntax
Checklist
Notes:
Reference: GitHub Actions filter pattern cheat sheet
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.