mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] zstd: Invoke Move-Item with retry (#4633)
This commit is contained in:
committed by
GitHub
parent
248e6728a3
commit
f4306a6c40
@@ -15,7 +15,9 @@ $filesInArchive = 7z l $zstdArchivePath | Out-String
|
|||||||
|
|
||||||
if ($filesInArchive.Contains($zstdParentName)) {
|
if ($filesInArchive.Contains($zstdParentName)) {
|
||||||
Extract-7Zip -Path $zstdArchivePath -DestinationPath $toolPath
|
Extract-7Zip -Path $zstdArchivePath -DestinationPath $toolPath
|
||||||
Move-Item -Path "${zstdPath}*" -Destination $zstdPath
|
Invoke-SBWithRetry -Command {
|
||||||
|
Move-Item -Path "${zstdPath}*" -Destination $zstdPath -ErrorAction Stop
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Extract-7Zip -Path $zstdArchivePath -DestinationPath $zstdPath
|
Extract-7Zip -Path $zstdArchivePath -DestinationPath $zstdPath
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user