mirror of https://github.com/actions/setup-python
Compare commits
3 Commits
27976d6b96
...
e454c75fc9
Author | SHA1 | Date |
---|---|---|
Fedor Korotkov | e454c75fc9 | |
fedor | 2750121aa7 | |
fedor | c4679e72ad |
|
@ -91842,7 +91842,7 @@ function run() {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
var _a;
|
||||
if (utils_1.IS_MAC) {
|
||||
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
|
||||
process.env['AGENT_TOOLSDIRECTORY'] = path.join(os.homedir(), 'hostedtoolcache');
|
||||
}
|
||||
if ((_a = process.env.AGENT_TOOLSDIRECTORY) === null || _a === void 0 ? void 0 : _a.trim()) {
|
||||
process.env['RUNNER_TOOL_CACHE'] = process.env['AGENT_TOOLSDIRECTORY'];
|
||||
|
|
|
@ -78,7 +78,10 @@ function resolveVersionInput() {
|
|||
|
||||
async function run() {
|
||||
if (IS_MAC) {
|
||||
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
|
||||
process.env['AGENT_TOOLSDIRECTORY'] = path.join(
|
||||
os.homedir(),
|
||||
'hostedtoolcache'
|
||||
);
|
||||
}
|
||||
|
||||
if (process.env.AGENT_TOOLSDIRECTORY?.trim()) {
|
||||
|
|
Loading…
Reference in New Issue