Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions eng/common/scripts/Update-DocsMsPackages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"
Expand Down
Loading