Check diff on PR, and check the entire files when other builds
@@ -83,10 +83,13 @@ jobs:
- template: /eng/common/pipelines/templates/steps/verify-links.yml
parameters:
- Directory: '.'
+ ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
+ Urls: ($(sdkPath)/eng/common/scripts/get-markdown-files-from-changed-files.ps1)
+ ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
+ Urls: $(Get-ChildItem -Path '$(sdkPath)/*.md' -Recurse | Where {$_.FullName -notlike "*/vendor/*" -and $_.FullName -notlike "*/sdk/*"})
+ Directory: ''
ScriptDirectory: '$(sdkPath)/eng/common/scripts'
WorkingDirectory: '$(sdkPath)'
- Urls: $(Get-ChildItem -Path '$(sdkPath)/*.md' -Recurse | Where {$_.FullName -notlike "*/vendor/*" -and $_.FullName -notlike "*/sdk/*"})
- script: go run ./eng/tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES
workingDirectory: '$(sdkPath)'
