mirror of
https://github.com/actions/runner-images.git
synced 2026-01-03 08:37:57 +08:00
[Windows] Implement new directories hierarchy (#8616)
This commit is contained in:
committed by
GitHub
parent
84a7deae24
commit
d1f2c9a3be
@@ -0,0 +1,12 @@
|
||||
################################################################################
|
||||
## File: Wait-WindowsUpdatesForInstall.ps1
|
||||
## Desc: Wait for installation windows updates to complete
|
||||
################################################################################
|
||||
|
||||
Invoke-SBWithRetry -RetryCount 10 -RetryIntervalSeconds 120 -Command {
|
||||
$inProgress = Get-WindowsUpdatesHistory | Where-Object Status -eq "InProgress" | Where-Object Title -notmatch "Microsoft Defender Antivirus"
|
||||
if ( $inProgress ) {
|
||||
$title = $inProgress.Title -join "`n"
|
||||
throw "InProgress: $title"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user