Sync eng/common directory with azure-sdk-tools for PR 9106 (#6082)

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-10-08 15:58:14 -07:00 committed by GitHub
parent 9b4417e38f
commit 0e48f058d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,13 @@ if (!(Test-Path $ArtifactPath))
$ArtifactPath = Resolve-Path $ArtifactPath
$ArtifactName = Join-Path $ArtifactPath "diff.json"
$changedFiles = @()
$changedServices = @()
$changedFiles = Get-ChangedFiles -DiffPath $TargetPath
$changedServices = Get-ChangedServices -ChangedFiles $changedFiles
if ($changedFiles) {
$changedServices = Get-ChangedServices -ChangedFiles $changedFiles
}
$result = [PSCustomObject]@{
"ChangedFiles" = $changedFiles