1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-07-07 09:45:59 +02:00

Use home dir instead of assuming /Users/runner

Signed-off-by: Mike Drob <mdrob@apple.com>
This commit is contained in:
Mike Drob 2025-07-02 16:10:52 -07:00
parent 1264885983
commit fa6dd954ee

View file

@ -127,7 +127,8 @@ function resolveVersionInput() {
async function run() {
if (IS_MAC) {
process.env['AGENT_TOOLSDIRECTORY'] = '/Users/runner/hostedtoolcache';
const home = process.env['HOME'] || '/Users/runner'
process.env['AGENT_TOOLSDIRECTORY'] = `${home}/hostedtoolcache`;
}
if (process.env.AGENT_TOOLSDIRECTORY?.trim()) {