Compare commits

...

3 Commits

Author SHA1 Message Date
Fedor Korotkov
47b5841e7e
Merge 2750121aa7086e179d363170998d52ffface3559 into 55aad42e4674b58b2b2fb7d8e7552402d922b4e7 2024-11-06 17:08:32 -08:00
fedor
2750121aa7 Formatted code 2023-08-01 10:51:33 -06:00
fedor
c4679e72ad Respect username on macOS self-hosted runners
Right now it's hardcoded to "runner"
2023-07-25 17:33:30 -04:00
2 changed files with 5 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@ -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'];

View File

@ -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()) {