Skip to content

Commit 9cd778f

Browse files
committed
Update release.yml
1 parent 8652ce6 commit 9cd778f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
throw "Unsupported tag version format '$tagVersion'. Expected 3 or 4 numeric segments."
4343
}
4444
45+
$versionParts = $tagVersion.Split(".")
46+
foreach ($part in $versionParts) {
47+
if ($part -notmatch '^\d+$') {
48+
throw "Unsupported tag version '$tagVersion'. Each segment in versionParts must be numeric before calling vpatch."
49+
}
50+
}
51+
4552
vpatch --stamp-version "$tagVersion" --target-file "Injector/Injector.rc" --resource.file-version --resource.product-version
4653
4754
- name: Add MSBuild to PATH

0 commit comments

Comments
 (0)