Skip to content

Commit b3720d8

Browse files
authored
Run link verification step at CI/Manual (Azure#11997)
1 parent 9858c68 commit b3720d8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

eng/pipelines/templates/steps/analyze.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ steps:
2020
parameters:
2121
SourceDirectory: $(Build.SourcesDirectory)
2222

23-
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
24-
- template: /eng/common/pipelines/templates/steps/verify-links.yml
25-
parameters:
23+
- template: /eng/common/pipelines/templates/steps/verify-links.yml
24+
parameters:
25+
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
2626
Directory: ""
2727
Urls: (git diff origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH} HEAD --name-only -- '*.md')
28-
CheckLinkGuidance: $true
28+
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
29+
Directory: sdk/${{ parameters.ServiceDirectory }}
30+
CheckLinkGuidance: $true
2931

3032
- script: |
3133
npm ci

0 commit comments

Comments
 (0)