Skip to content

Commit 33809be

Browse files
Add ability to skip onboarding legacy moniker to Update-DocsMsPackages.ps1 (#43834)
Co-authored-by: Daniel Jurek <[email protected]>
1 parent d76befa commit 33809be

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

eng/common/scripts/Update-DocsMsPackages.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ param (
2626
[string] $DocRepoLocation, # the location of the cloned doc repo
2727

2828
[Parameter(Mandatory = $false)]
29-
[string] $PackageSourceOverride
29+
[string] $PackageSourceOverride,
30+
31+
[switch] $SkipLegacyOnboarding
3032
)
3133

3234
. (Join-Path $PSScriptRoot common.ps1)
@@ -57,7 +59,11 @@ function PackageIsValidForDocsOnboarding($package) {
5759
-DocRepoLocation $DocRepoLocation
5860
}
5961

60-
$MONIKERS = @('latest', 'preview', 'legacy')
62+
$MONIKERS = @('latest', 'preview')
63+
if (!$SkipLegacyOnboarding) {
64+
$MONIKERS += 'legacy'
65+
}
66+
6167
foreach ($moniker in $MONIKERS) {
6268
try {
6369
Write-Host "Onboarding packages for moniker: $moniker"

0 commit comments

Comments
 (0)