mirror of
https://github.com/actions/setup-python.git
synced 2025-08-11 11:02:08 +00:00
Use home dir instead of assuming /Users/runner
Signed-off-by: Mike Drob <mdrob@apple.com>
This commit is contained in:
parent
1264885983
commit
fa6dd954ee
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user