mirror of
https://github.com/actions/runner-images.git
synced 2025-12-28 20:58:32 +08:00
Fix the cleanup script. (#856)
* Fix the cleanup script.The result is not returned to the variable because of the output redirect * Added the cancel timeout.
This commit is contained in:
@@ -11,7 +11,7 @@ az login --service-principal --username $ClientId --password $ClientSecret --ten
|
||||
|
||||
$TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
|
||||
|
||||
$groupExist = az group exists --name $TempResourceGroupName --subscription $SubscriptionId | Out-Null
|
||||
$groupExist = az group exists --name $TempResourceGroupName --subscription $SubscriptionId
|
||||
if ($groupExist -eq "true") {
|
||||
Write-Host "Found a match, deleting temporary files"
|
||||
az group delete --name $TempResourceGroupName --subscription $SubscriptionId --yes | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user