mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 05:22:06 +08:00
Wait for Windows Updates (#4924)
This commit is contained in:
committed by
GitHub
parent
9c73205ecc
commit
023104e407
@@ -258,11 +258,15 @@
|
||||
},
|
||||
{
|
||||
"type": "windows-restart",
|
||||
"check_registry": true,
|
||||
"restart_check_command": "powershell -command \"& {if ((-not (Get-Process TiWorker.exe -ErrorAction SilentlyContinue)) -and (-not [System.Environment]::HasShutdownStarted) ) { Write-Output 'Restart complete' }}\"",
|
||||
"restart_timeout": "30m"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"pause_before": "2m",
|
||||
"scripts": [
|
||||
"{{ template_dir }}/scripts/Installers/Wait-WindowsUpdatesForInstall.ps1",
|
||||
"{{ template_dir }}/scripts/Tests/RunAll-Tests.ps1"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user