mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Windows] Rename the Invoke-SBWithRetry function (#8880)
This commit is contained in:
committed by
GitHub
parent
d2cbbb901b
commit
c73276d3f6
@@ -90,7 +90,7 @@ function Install-JavaJDK {
|
||||
|
||||
# Complete the installation by extracting Java binaries to toolcache and creating the complete file
|
||||
Expand-7ZipArchive -Path $archivePath -DestinationPath $javaVersionPath
|
||||
Invoke-SBWithRetry -Command {
|
||||
Invoke-ScriptBlockWithRetry -Command {
|
||||
Get-ChildItem -Path $javaVersionPath | Rename-Item -NewName $javaArchPath -ErrorAction Stop
|
||||
}
|
||||
New-Item -ItemType File -Path $javaVersionPath -Name "$Architecture.complete" | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user