mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +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
@@ -69,7 +69,9 @@ function Install-Ruby
|
||||
New-Item -ItemType Directory -Path $rubyVersionPath -Force | Out-Null
|
||||
|
||||
Write-Host "Moving Ruby '${rubyVersion}' files to '${rubyArchPath}'"
|
||||
Move-Item -Path $tempFolder -Destination $rubyArchPath | Out-Null
|
||||
Invoke-SBWithRetry -Command {
|
||||
Move-Item -Path $tempFolder -Destination $rubyArchPath -ErrorAction Stop | Out-Null
|
||||
}
|
||||
|
||||
Write-Host "Removing Ruby '${rubyVersion}' documentation '${rubyArchPath}\share\doc' folder"
|
||||
Remove-Item -Path "${rubyArchPath}\share\doc" -Force -Recurse -ErrorAction Ignore
|
||||
|
||||
Reference in New Issue
Block a user