Skip to content

Commit

Permalink
ci: fix vscode extension versioning script to support more than one p…
Browse files Browse the repository at this point in the history
…atch version

Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Jan 14, 2025
1 parent 99d9038 commit 6908010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/update-vscode-releases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6908010

Please sign in to comment.