Skip to content

Commit

Permalink
Only check the touched markdown files in PR for the Verify link step (A…
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored and annelo-msft committed Feb 17, 2021
1 parent bb57573 commit 3fcebac
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 @@ -66,10 +66,12 @@ jobs:
displayName: "Use Python 3.6"
inputs:
versionSpec: "3.6"
- template: /eng/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
- script: |
pip install setuptools wheel
pip install doc-warden==$(DocWardenVersion)
Expand Down

0 comments on commit 3fcebac

Please sign in to comment.