Skip to content

Commit

Permalink
Updates for feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored and azure-sdk committed Jan 16, 2025
1 parent 78444db commit 0f71245
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ steps:
${{ parameters.ScriptDirectory }}/Generate-PR-Diff.ps1
-TargetPath '${{ parameters.TargetPath }}'
-ArtifactPath '${{ parameters.DiffDirectory }}'
-ExcludePaths ('${{ convertToJson(parameters.ExcludePaths) }}' | convertFrom-Json)
-ExcludePaths ('${{ convertToJson(parameters.ExcludePaths) }}' | ConvertFrom-Json)
pwsh: true

# When running in PR mode, we want the detected changed services to be attached to the build as tags.
Expand Down
5 changes: 3 additions & 2 deletions eng/common/scripts/Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
# slashes "/". The ExcludePaths need to have a trailing slash added in order
# correctly test for string matches without overmatching. For example, if a pr
# had files sdk/foo/file1 and sdk/foobar/file2 with the exclude of anything in
# sdk/foo, it should only exclude things under sdk/foo.
$excludePaths = $diff.ExcludePaths | ForEach-Object { $_ + "/" }
# sdk/foo, it should only exclude things under sdk/foo. The TrimEnd is just in
# case one of the paths ends with a slash, it doesn't add a second one.
$excludePaths = $diff.ExcludePaths | ForEach-Object { $_.TrimEnd("/") + "/" }

$additionalValidationPackages = @()
$lookup = @{}
Expand Down

0 comments on commit 0f71245

Please sign in to comment.