mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Invoke Move-Item and Rename-Item with retry after Extract-7Zip (#4598)
This commit is contained in:
committed by
GitHub
parent
af645a7b5e
commit
978ab79564
@@ -40,7 +40,9 @@ function Install-PyPy
|
||||
New-Item -ItemType Directory -Path $pypyVersionPath -Force | Out-Null
|
||||
|
||||
Write-Host "Move PyPy '${pythonVersion}' files to '${pypyArchPath}'"
|
||||
Move-Item -Path $tempFolder -Destination $pypyArchPath | Out-Null
|
||||
Invoke-SBWithRetry -Command {
|
||||
Move-Item -Path $tempFolder -Destination $pypyArchPath -ErrorAction Stop | Out-Null
|
||||
}
|
||||
|
||||
Write-Host "Install PyPy '${pythonVersion}' in '${pypyArchPath}'"
|
||||
if (Test-Path "$pypyArchPath\python.exe") {
|
||||
|
||||
Reference in New Issue
Block a user