Skip to content

Commit

Permalink
Fixed the prefix of the target branch (#17037)
Browse files Browse the repository at this point in the history
Co-authored-by: sima-zhu <sizhu@microsoft.com>
  • Loading branch information
azure-sdk and sima-zhu committed Feb 11, 2022
1 parent 75e8939 commit 485d02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/pipelines/templates/steps/credscan.yml
Expand Up @@ -7,7 +7,7 @@ parameters:
steps:
- pwsh: |
if ("$(Build.Reason)" -eq 'PullRequest') {
$targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "/refs/heads/"
$targetBranch = "origin/$(System.PullRequest.TargetBranch)" -replace "refs/heads/"
$changedFiles = git diff $targetBranch HEAD --name-only --diff-filter=d
$changedFiles | ForEach-Object { Add-Content -Path "${{ parameters.SourceDirectory }}/credscan.tsv" -Value "${{ parameters.SourceDirectory }}/$_"}
}
Expand Down

0 comments on commit 485d02a

Please sign in to comment.