See this code: https://github.com/actions/runner/blob/6bec1e3bb832aad26f4ad5b64759a8e4d468df24/src/Runner.Common/HostContext.cs#L233
The runner prefers RUNNER_TOOL_CACHE and then falls back to RUNNER_TOOLSDIRECTORY. setup-python only uses the latter:
|
let cacheDirectory = process.env['RUNNER_TOOLSDIRECTORY'] || ''; |
See this code: https://github.com/actions/runner/blob/6bec1e3bb832aad26f4ad5b64759a8e4d468df24/src/Runner.Common/HostContext.cs#L233
The runner prefers
RUNNER_TOOL_CACHEand then falls back toRUNNER_TOOLSDIRECTORY.setup-pythononly uses the latter:setup-python/src/find-python.ts
Line 6 in 9ac7308