Skip to content

Commit c5b7bf0

Browse files
authored
Fix the issue that CI will fail to when tools is updated in generation branch (#20626)
1 parent e1ff717 commit c5b7bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/PrepareAutorestModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if ($ModuleSet.Contains($ALL_MODULE))
4949
$Null = $ModuleSet.Remove($ALL_MODULE)
5050
$CIConfig = Get-Content "$PSScriptRoot\..\.ci-config.json" | ConvertFrom-Json
5151
$SelectedModuleList = (Get-ChildItem "$PSScriptRoot\..\src\").Name | Where-Object { $CIConfig.selectModuleList -contains $_ }
52-
$Null = $ModuleSet.Add($SelectedModuleList)
52+
$SelectedModuleList | ForEach-Object { $Null = $ModuleSet.Add($_) }
5353
$ModuleList = $ModuleSet | Where-Object { $SKIP_MODULES -notcontains $_ }
5454
}
5555
else

0 commit comments

Comments
 (0)