diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index e9254ba96..940982661 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -320,7 +320,9 @@ function Get-PrPkgProperties([string]$InputDiffJson) { # packages. We should never return NO validation. if ($packagesWithChanges.Count -eq 0) { $packagesWithChanges += ($allPackageProperties | Where-Object { $_.ServiceDirectory -eq "template" }) - $packagesWithChanges[0].IncludedForValidation = $true + foreach ($package in $packagesWithChanges) { + $package.IncludedForValidation = $true + } } return $packagesWithChanges