Migrate tools CI to GA

This commit is contained in:
MaksimZhukov
2020-08-21 19:35:25 +03:00
parent 68072bedef
commit 7a56615638
6 changed files with 153 additions and 51 deletions

View File

@@ -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
}