1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-14 14:24:11 +02:00

AzDev environment

This commit is contained in:
Sergey Dolin 2023-07-17 14:15:14 +02:00
parent 60dde965e0
commit 90cd2f950f
2 changed files with 5 additions and 2 deletions

View file

@ -203,7 +203,9 @@ async function installGoVersion(
// for github hosted windows runner handle latency of OS drive
// by avoiding write operations to C:
const isHosted = process.env['RUNNER_ENVIRONMENT'] === 'github-hosted';
const isHosted =
process.env['RUNNER_ENVIRONMENT'] === 'github-hosted' ||
process.env['AGENT_ISSELFHOSTED'] === '0';
if (isWindows && isHosted && fs.existsSync('d:\\') && fs.existsSync('c:\\')) {
const defaultToolCacheRoot = process.env['RUNNER_TOOL_CACHE'] || '';
const substitutedToolCacheRoot = defaultToolCacheRoot