This commit is contained in:
Fedor Korotkov 2024-01-29 09:25:34 +01:00 committed by GitHub
commit 1db2b4f541
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -91116,7 +91116,7 @@ function run() {
var _a;
return __awaiter(this, void 0, void 0, function* () {
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()) {