mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 16:13:46 +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
							
								
									267870a9c4
								
							
						
					
					
						commit
						966e2297fc
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user