Skip to content

Commit 1d832c7

Browse files
authored
Fix the issue that run version controller failed during the release process (#28004)
1 parent c4bfd80 commit 1d832c7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tools/RunVersionController.ps1

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ function Bump-AzVersion
175175
Write-Host "Getting local Az information..." -ForegroundColor Yellow
176176
$localAz = Import-PowerShellDataFile -Path "$PSScriptRoot\Az\Az.psd1"
177177
Write-Host "Getting Az $ReleaseType information from gallery..." -ForegroundColor Yellow
178+
178179
if("LTS" -eq $ReleaseType){
179180
if (Test-Path Env:\DEFAULT_PS_REPOSITORY_URL) {
180181
Write-Host "Using DEFAULT_PS_REPOSITORY_NAME: $Env:DEFAULT_PS_REPOSITORY_NAME"
@@ -216,11 +217,7 @@ function Bump-AzVersion
216217
continue
217218
}
218219

219-
$galleryVersion = $galleryDependency.RequiredVersion
220-
if ([string]::IsNullOrEmpty($galleryVersion))
221-
{
222-
$galleryVersion = $galleryDependency.MinimumVersion
223-
}
220+
$galleryVersion = $galleryDependency.VersionRange.MinVersion.OriginalVersion
224221

225222
$localVersion = $localDependency.RequiredVersion
226223
# Az.Accounts uses ModuleVersion to annote Version
@@ -364,11 +361,7 @@ function Update-AzPreviewChangelog
364361
continue
365362
}
366363

367-
$galleryVersion = $galleryDependency.RequiredVersion
368-
if ([string]::IsNullOrEmpty($galleryVersion))
369-
{
370-
$galleryVersion = $galleryDependency.MinimumVersion
371-
}
364+
$galleryVersion = $galleryDependency.VersionRange.MinVersion.OriginalVersion
372365

373366
$localVersion = $localDependency.RequiredVersion
374367
# Az.Accounts uses ModuleVersion to annote Version

0 commit comments

Comments
 (0)