Sync eng/common directory with azure-sdk-tools for PR 10508 (#6550)

* Wraper script for calling package properties

* Tidy up path and serviceDirectoryName

---------

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-04-29 18:38:01 -07:00 committed by GitHub
parent a742c81be8
commit d99f94008d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,3 +229,12 @@ function Set-ApiViewCommentForPR {
exit 1
}
}
function Save-PackageProperties ($repoRoot, $serviceNames, $outputDirectory) {
$scriptPath = Join-Path $repoRoot "eng" "common" "scripts" "Save-Package-Properties.ps1"
$serviceDirectories = $serviceNames -split ","
foreach ($serviceDirectory in $serviceDirectories) {
& $scriptPath -ServiceDirectory $serviceDirectory.Trim() -OutDirectory $outputDirectory
}
}