diff --git a/eng/pipelines/templates/jobs/analyze.yml b/eng/pipelines/templates/jobs/analyze.yml index 048042d714..56b2fb755a 100644 --- a/eng/pipelines/templates/jobs/analyze.yml +++ b/eng/pipelines/templates/jobs/analyze.yml @@ -20,6 +20,14 @@ jobs: packageType: sdk version: 9.0.x + - template: /eng/common/pipelines/templates/steps/verify-links.yml + parameters: + Condition: succeededOrFailed() + Directory: "" + CheckLinkGuidance: $true + ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: + Urls: (eng/common/scripts/get-markdown-files-from-changed-files.ps1) + - task: Powershell@2 displayName: "Run source analysis" inputs: @@ -34,14 +42,6 @@ jobs: - template: /eng/common/pipelines/templates/steps/check-spelling.yml - - template: /eng/common/pipelines/templates/steps/verify-links.yml - parameters: - Condition: succeededOrFailed() - Directory: "" - CheckLinkGuidance: $true - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: - Urls: (eng/common/scripts/get-markdown-files-from-changed-files.ps1) - - pwsh: | # Verify that the package README.md files do not contain invalid headers or comment annotations $hasFailures = & "$(Build.SourcesDirectory)/eng/scripts/Process-PackageReadMe.ps1" -Command "validate-all"