build-release.ps1: accept three-part hot-fix tags (e.g. v3.0.1)
The script's ValidatePattern was '^v[0-9]+\.[0-9]+$', which rejected v3.0.1 because the v3.0 line predated any hot-fix releases. Widened to accept an optional third component so v3.0.1 (and future patch releases) build via the same path as v3.0 / v2.2 / etc. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
5737550453
commit
d904bafe73
+2
-1
@@ -22,7 +22,8 @@
|
|||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory = $true, Position = 0)]
|
[Parameter(Mandatory = $true, Position = 0)]
|
||||||
[ValidatePattern('^v[0-9]+\.[0-9]+$')]
|
# Accepts two-part (v3.0) or three-part (v3.0.1 hot-fix) tags.
|
||||||
|
[ValidatePattern('^v[0-9]+\.[0-9]+(\.[0-9]+)?$')]
|
||||||
[string]$Tag
|
[string]$Tag
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user