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:
parent
53af908ebc
commit
93627686cf
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user