From 6908010b3414b3e13ee6f288a8f47f8a351b90dc Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 14 Jan 2025 11:08:56 -0500 Subject: [PATCH] ci: fix vscode extension versioning script to support more than one patch version Signed-off-by: Vincent Biret --- scripts/update-vscode-releases.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/update-vscode-releases.ps1 b/scripts/update-vscode-releases.ps1 index 5df51913b6..8f6e51c540 100644 --- a/scripts/update-vscode-releases.ps1 +++ b/scripts/update-vscode-releases.ps1 @@ -39,8 +39,9 @@ if ($version -like "*-preview.*") { $updatedPatchVersion += (Get-Date).ToString("yyMMdd") + $sequenceNumber } else { - if ($updatedPatchVersion -eq "1") { - $updatedPatchVersion = "100000002" + $updatedPatchVersionAsNumber = 0; + if ([int]::TryParse($updatedPatchVersion, [ref]$updatedPatchVersionAsNumber)) { + $updatedPatchVersion = "10000000$($updatedPatchVersionAsNumber + 1)" } elseif ([string]::IsNullOrWhiteSpace($updatedPatchVersion)) { $updatedPatchVersion = "100000001"