Skip to content

Commit bbdb3b3

Browse files
edvilmeCopilot
andauthored
Fix regex check for stable release tag format
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a98af2c commit bbdb3b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎azure-pipelines/stable.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extends:
5151

5252
preBuildSteps:
5353
- pwsh: |
54-
if ("$(Build.SourceBranch)" -notmatch '^refs/tags/release/\d{4}\.\d+$') {
54+
if ($env:BUILD_SOURCEBRANCH -notmatch '^refs/tags/release/\d{4}\.\d+$') {
5555
Write-Error "Stable release tag must match release/<year>.<build>, where <year> is four digits and <build> is numeric."
5656
exit 1
5757
}

0 commit comments

Comments
 (0)