Skip to content

Commit

Permalink
Only check the touched markdown files in PR for the Verify link step (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu committed Oct 16, 2020
1 parent 28d26bf commit c9bc795
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,12 @@ jobs:
ward scan -d $(Build.SourcesDirectory) -c $(Build.SourcesDirectory)/eng/.docsettings.yml
displayName: 'Verify Readmes'
- template: ../../../common/pipelines/templates/steps/verify-links.yml
parameters:
Directory: sdk/${{ parameters.ServiceDirectory }}
CheckLinkGuidance: $true
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- template: /eng/common/pipelines/templates/steps/verify-links.yml
parameters:
Directory: ''
Urls: (git diff origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH} HEAD --name-only -- '*.md')
CheckLinkGuidance: $true

- ${{if ne(parameters.SDKType, 'data')}}:
- ${{ each artifact in parameters.Artifacts }}:
Expand Down

0 comments on commit c9bc795

Please sign in to comment.