Code needs to handle more than one template library (#6436)

Co-authored-by: James Suplizio <jasupliz@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-02-26 10:13:03 -08:00 committed by GitHub
parent c7deb5a0a8
commit b538bd9935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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