mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-06-06 18:17:08 +00:00
Rename toolcache directory instead of moving to tmp
This further enhances time savings seen in #213, down from a few minutes to seconds.
This commit is contained in:
parent
af9211b136
commit
babb40fcf4
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@ $dotnetPaths = @{
|
|||
|
||||
foreach ($srcPath in $dotnetPaths[$args[0]]) {
|
||||
if (Test-Path $srcPath) {
|
||||
Write-Host "Move $srcPath path"
|
||||
$dstPath = Join-Path ([IO.Path]::GetTempPath()) ([IO.Path]::GetRandomFileName())
|
||||
$dstPath = "$srcPath-" + [IO.Path]::GetRandomFileName()
|
||||
Write-Host "Moving $srcPath to $dstPath"
|
||||
Move-Item -Path $srcPath -Destination $dstPath
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue