1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-09-19 16:46:43 +00:00

Merge pull request #3 from actions/workaround

Update tool-cache.js
This commit is contained in:
Danny McCormick 2019-07-08 13:55:54 -04:00 committed by GitHub
commit 87886b89ec
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ const IS_WINDOWS = process.platform === 'win32';
const userAgent = 'actions/tool-cache';
// On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
let cacheRoot = process.env['RUNNER_TOOLSDIRECTORY'] || '';
let cacheRoot = process.env['AGENT_TOOLSDIRECTORY'] || process.env['RUNNER_TOOLSDIRECTORY'] || '';
// If directories not found, place them in common temp locations
if (!tempDirectory || !cacheRoot) {
let baseLocation;
@ -433,4 +433,4 @@ function _evaluateVersions(versions, versionSpec) {
}
return version;
}
//# sourceMappingURL=tool-cache.js.map
//# sourceMappingURL=tool-cache.js.map