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 Oct 16, 2020
1 parent 35ae12c commit 48feb14
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ steps:
parameters:
SourceDirectory: $(Build.SourcesDirectory)

- 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

- script: |
npm ci
Expand Down

0 comments on commit 48feb14

Please sign in to comment.