mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 02:20:20 +08:00
[Windows] Apply code style rules to Windows scripts (#8957)
* Apply code style rules to Windows scripts * Fix typo * Fix configure-toolset script * Fix parameters in Msys2 installation script * Improve log readability * Remove broken exit code validation
This commit is contained in:
committed by
GitHub
parent
76d6f0f574
commit
7fe65a2204
@@ -15,16 +15,16 @@ Update-Environment
|
||||
|
||||
az extension add -n azure-devops
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Command 'az extension add -n azure-devops' failed"
|
||||
throw "Command 'az extension add -n azure-devops' failed"
|
||||
}
|
||||
|
||||
# Warm-up Azure DevOps CLI
|
||||
Write-Host "Warmup 'az-devops'"
|
||||
@('devops', 'pipelines', 'boards', 'repos', 'artifacts') | ForEach-Object {
|
||||
az $_ --help
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Command 'az $_ --help' failed"
|
||||
}
|
||||
az $_ --help
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Command 'az $_ --help' failed"
|
||||
}
|
||||
}
|
||||
|
||||
# calling az devops login to force it to install `keyring`. Login will actually fail, redirecting error to null
|
||||
|
||||
Reference in New Issue
Block a user