From b538bd9935f35b6d4d8916bda7e34bbdcc18e3cd Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:13:03 -0800 Subject: [PATCH] Code needs to handle more than one template library (#6436) Co-authored-by: James Suplizio --- eng/common/scripts/Package-Properties.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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