Sync eng/common directory with azure-sdk-tools for PR 1341 (#541)

* 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 <sizhu@microsoft.com>
This commit is contained in:
Azure SDK Bot 2021-01-26 18:14:31 -08:00 коммит произвёл GitHub
Родитель 7f6c81f6cb
Коммит 2233755e43
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -8,10 +8,12 @@ parameters:
Urls: '(Get-ChildItem -Path ./ -Recurse -Include *.md)'
BranchReplaceRegex: "^(${env:SYSTEM_PULLREQUEST_SOURCEREPOSITORYURI}.*/(?:blob|tree)/)master(/.*)$"
BranchReplacementName: "${env:SYSTEM_PULLREQUEST_SOURCECOMMITID}"
Condition: succeeded() # If you want to run on failure for the link checker, set it to `Condition: succeededOrFailed()`.
steps:
- task: PowerShell@2
displayName: Link verification check
condition: ${{ parameters.Condition }}
inputs:
pwsh: true
workingDirectory: '${{ parameters.WorkingDirectory }}/${{ parameters.Directory }}'