Skip to content

Commit 513dbec

Browse files
azure-sdksima-zhu
andauthored
Sync eng/common directory with azure-sdk-tools for PR 1341 (#18820)
* Run the link verification step even previous step failed. * Make the tab right * Address comments * Run default condition if no RunOnFailure set. * Changed back to simple condition Co-authored-by: Sima Zhu <[email protected]>
1 parent eac3b99 commit 513dbec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eng/common/pipelines/templates/steps/verify-links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ parameters:
88
Urls: '(Get-ChildItem -Path ./ -Recurse -Include *.md)'
99
BranchReplaceRegex: "^(${env:SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI}.*/(?:blob|tree)/)master(/.*)$"
1010
BranchReplacementName: "${env:SYSTEM_PULLREQUEST_SOURCECOMMITID}"
11+
Condition: succeeded() # If you want to run on failure for the link checker, set it to `Condition: succeededOrFailed()`.
1112

1213
steps:
1314
- task: PowerShell@2
1415
displayName: Link verification check
16+
condition: ${{ parameters.Condition }}
1517
inputs:
1618
pwsh: true
1719
workingDirectory: '${{ parameters.WorkingDirectory }}/${{ parameters.Directory }}'

0 commit comments

Comments
 (0)