mirror of
https://github.com/actions/setup-python.git
synced 2024-11-14 07:31:09 +07:00
Respect username on macOS self-hosted runners
Right now it's hardcoded to "runner"
This commit is contained in:
parent
61a6322f88
commit
c4679e72ad
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -69859,7 +69859,7 @@ function run() {
|
|||||||
var _a;
|
var _a;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
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'];
|
||||||
|
@ -73,7 +73,7 @@ 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
Block a user