From 70ee0255021e7c4be4625194c9af0a847a96e89e Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Wed, 11 Jan 2023 15:54:05 +0800 Subject: [PATCH] Fix the issue that CI will fail to when tools is updated in generation branch --- tools/PrepareAutorestModule.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/PrepareAutorestModule.ps1 b/tools/PrepareAutorestModule.ps1 index 2f8f0e9a7391..5187c39405df 100644 --- a/tools/PrepareAutorestModule.ps1 +++ b/tools/PrepareAutorestModule.ps1 @@ -49,7 +49,7 @@ if ($ModuleSet.Contains($ALL_MODULE)) $Null = $ModuleSet.Remove($ALL_MODULE) $CIConfig = Get-Content "$PSScriptRoot\..\.ci-config.json" | ConvertFrom-Json $SelectedModuleList = (Get-ChildItem "$PSScriptRoot\..\src\").Name | Where-Object { $CIConfig.selectModuleList -contains $_ } - $Null = $ModuleSet.Add($SelectedModuleList) + $SelectedModuleList | ForEach-Object { $Null = $ModuleSet.Add($_) } $ModuleList = $ModuleSet | Where-Object { $SKIP_MODULES -notcontains $_ } } else