diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index 38d181eaac50..cf9c1b391eb1 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -168,7 +168,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) { $lookup[$lookupKey] = $pkg foreach ($file in $targetedFiles) { - $filePath = Resolve-Path (Join-Path $RepoRoot $file) + $filePath = (Join-Path $RepoRoot $file) $shouldInclude = $filePath -like "$pkgDirectory*" if ($shouldInclude) { $packagesWithChanges += $pkg diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index d6f5c38b0ebb..c63cf44fa442 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -74,7 +74,8 @@ jobs: MatrixConfigs: ${{ parameters.MatrixConfigs }} MatrixFilters: ${{ parameters.MatrixFilters }} MatrixReplace: ${{ parameters.MatrixReplace }} - SparseCheckoutPaths: [ "sdk/", ".vscode"] + ${{ if eq(parameters.ServiceDirectory, 'auto') }}: + SparseCheckoutPaths: [ "**/package.json", "**/ci.yml"] CloudConfig: Cloud: Public AdditionalParameters: