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