mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 04:37:09 +00:00
Toolcache: remove InstallTool function from Download-ToolCache.ps1
This commit is contained in:
@@ -20,19 +20,6 @@ Function Install-NpmPackage {
|
|||||||
npm install $Name --registry=$NpmRegistry
|
npm install $Name --registry=$NpmRegistry
|
||||||
}
|
}
|
||||||
|
|
||||||
Function InstallTool {
|
|
||||||
[CmdletBinding()]
|
|
||||||
param(
|
|
||||||
[System.IO.FileInfo]$ExecutablePath
|
|
||||||
)
|
|
||||||
|
|
||||||
Set-Location -Path $ExecutablePath.DirectoryName -PassThru | Write-Host
|
|
||||||
if (Test-Path 'tool.zip') {
|
|
||||||
Expand-Archive 'tool.zip' -DestinationPath '.'
|
|
||||||
}
|
|
||||||
cmd.exe /c 'install_to_tools_cache.bat'
|
|
||||||
}
|
|
||||||
|
|
||||||
# HostedToolCache Path
|
# HostedToolCache Path
|
||||||
$Dest = "C:/"
|
$Dest = "C:/"
|
||||||
$Path = "hostedtoolcache/windows"
|
$Path = "hostedtoolcache/windows"
|
||||||
|
|||||||
Reference in New Issue
Block a user