Only check links in changed files (for PR builds) or the service directory (for release builds) (#4621)
* Only check links in changed files (for PR builds) or the service directory (for release builds) * Fixed link detection for CheckLinkGuidance
This commit is contained in:
parent
59a44ba3d8
commit
9b44a9913b
@ -157,7 +157,11 @@ jobs:
|
||||
|
||||
- template: /eng/common/pipelines/templates/steps/verify-links.yml
|
||||
parameters:
|
||||
Directory: ''
|
||||
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||
Directory: ''
|
||||
Urls: (eng/common/scripts/get-markdown-files-from-changed-files.ps1)
|
||||
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
|
||||
Directory: sdk/${{ parameters.ServiceDirectory }}
|
||||
CheckLinkGuidance: $true
|
||||
|
||||
- ${{ each artifact in parameters.Artifacts }}:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user