diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index ef89732b40cdc..88e3cddbf1282 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -165,7 +165,7 @@ jobs: parameters: ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: Directory: '' - Urls: (git diff origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH} HEAD --name-only -- '*.md') + Urls: (eng/common/scripts/get-markdown-files-from-changed-files.ps1) ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: Directory: sdk/${{ parameters.ServiceDirectory }} CheckLinkGuidance: $true