mirror of
https://github.com/actions/setup-python
synced 2024-11-30 21:22:28 +08:00
Compare commits
3 Commits
e454c75fc9
...
617f2db889
Author | SHA1 | Date | |
---|---|---|---|
|
617f2db889 | ||
|
2750121aa7 | ||
|
c4679e72ad |
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -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
Block a user