File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5325,14 +5325,16 @@ function cacheDependencies(cache, pythonVersion) {
5325
5325
function run() {
5326
5326
var _a;
5327
5327
return __awaiter(this, void 0, void 0, function* () {
5328
+ // According to the README windows binaries do not require to be installed
5329
+ // in the specific location, but Mac and Linux do
5328
5330
if (!utils_1.IS_WINDOWS && !((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim())) {
5329
5331
if (utils_1.IS_LINUX)
5330
5332
process.env['AGENT_TOOLSDIRECTORY'] = '/opt/hostedtoolcache';
5331
5333
else
5332
5334
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
5335
+ process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
5333
5336
}
5334
- core.debug(`Python is expected to be installed into AGENT_TOOLSDIRECTORY=${process.env['AGENT_TOOLSDIRECTORY']}`);
5335
- process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
5337
+ core.debug(`Python is expected to be installed into RUNNER_TOOL_CACHE=${process.env['RUNNER_TOOL_CACHE']}`);
5336
5338
try {
5337
5339
const version = core.getInput('python-version');
5338
5340
if (version) {
Original file line number Diff line number Diff line change @@ -49,14 +49,16 @@ function resolveVersionInput(): string {
49
49
}
50
50
51
51
async function run ( ) {
52
+ // According to the README windows binaries do not require to be installed
53
+ // in the specific location, but Mac and Linux do
52
54
if ( ! IS_WINDOWS && ! process . env . AGENT_TOOLSDIRECTORY ?. trim ( ) ) {
53
55
if ( IS_LINUX ) process . env [ 'AGENT_TOOLSDIRECTORY' ] = '/opt/hostedtoolcache' ;
54
56
else process . env [ 'AGENT_TOOLSDIRECTORY' ] = '/Users/runner/hostedtoolcache' ;
57
+ process . env [ 'RUNNER_TOOL_CACHE' ] = process . env [ 'AGENT_TOOLSDIRECTORY' ] ;
55
58
}
56
59
core . debug (
57
- `Python is expected to be installed into AGENT_TOOLSDIRECTORY =${ process . env [ 'AGENT_TOOLSDIRECTORY ' ] } `
60
+ `Python is expected to be installed into RUNNER_TOOL_CACHE =${ process . env [ 'RUNNER_TOOL_CACHE ' ] } `
58
61
) ;
59
- process . env [ 'RUNNER_TOOL_CACHE' ] = process . env [ 'AGENT_TOOLSDIRECTORY' ] ;
60
62
try {
61
63
const version = resolveVersionInput ( ) ;
62
64
if ( version ) {
You can’t perform that action at this time.
0 commit comments