[CI] Use the same status as the tests so that we do not have pending stauses. (#11969)

This commit is contained in:
Manuel de la Pena 2021-06-17 10:59:56 -04:00 коммит произвёл GitHub
Родитель 32a62c0030
Коммит fc46335c32
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -77,11 +77,11 @@ steps:
Import-Module ./VSTS.psm1
Import-Module ./GitHub.psm1
if ( -not (Test-HDFreeSpace -Size 5)) {
Set-GitHubStatus -Status "error" -Description "Not enough free space in the host." -Context "macOS $Env:CONTEXT"
Set-GitHubStatus -Status "error" -Description "Not enough free space in the host." -Context "$Env:CONTEXT"
New-GitHubComment -Header "Tests failed catastrophically on $Env:CONTEXT" -Emoji ":fire:" -Description "Not enough free space in the host."
Stop-Pipeline
} else {
Set-GitHubStatus -Status "pending" -Description "Tests on <macOS version XYZ> on VSTS have been started." -Context "macOS $Env:CONTEXT"
Set-GitHubStatus -Status "pending" -Description "Tests $Env:CONTEXT on VSTS have been started." -Context "$Env:CONTEXT"
}
env:
BUILD_REVISION: $(Build.SourceVersion)