mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 03:13:23 +00:00
Migrate tools CI to GA
This commit is contained in:
@@ -3,6 +3,11 @@ param (
|
||||
)
|
||||
|
||||
$targetPath = $env:AGENT_TOOLSDIRECTORY
|
||||
if ([string]::IsNullOrEmpty($targetPath)) {
|
||||
# GitHub Windows images don't have `AGENT_TOOLSDIRECTORY` variable
|
||||
$targetPath = $env:RUNNER_TOOL_CACHE
|
||||
}
|
||||
|
||||
if ($ToolName) {
|
||||
$targetPath = Join-Path $targetPath $ToolName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user