mirror of
https://github.com/actions/setup-python.git
synced 2025-06-07 03:52:07 +08:00
Merge 2750121aa7086e179d363170998d52ffface3559 into 3fddbee7870211eda9047db10474808be43c71ec
This commit is contained in:
commit
de7dbef26b
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…
x
Reference in New Issue
Block a user