mirror of
https://github.com/actions/setup-python.git
synced 2025-07-26 18:18:23 +02: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 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ 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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue