Add ability to skip onboarding legacy moniker to Update-DocsMsPackages.ps1 (#6819)

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-11-06 15:26:39 -08:00 committed by GitHub
parent 53af908ebc
commit 93627686cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,9 @@ param (
[string] $DocRepoLocation, # the location of the cloned doc repo
[Parameter(Mandatory = $false)]
[string] $PackageSourceOverride
[string] $PackageSourceOverride,
[switch] $SkipLegacyOnboarding
)
. (Join-Path $PSScriptRoot common.ps1)
@ -57,7 +59,11 @@ function PackageIsValidForDocsOnboarding($package) {
-DocRepoLocation $DocRepoLocation
}
$MONIKERS = @('latest', 'preview', 'legacy')
$MONIKERS = @('latest', 'preview')
if (!$SkipLegacyOnboarding) {
$MONIKERS += 'legacy'
}
foreach ($moniker in $MONIKERS) {
try {
Write-Host "Onboarding packages for moniker: $moniker"