1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-07-07 09:45:59 +02:00
This commit is contained in:
Mike Drob 2025-07-03 10:58:00 -07:00 committed by GitHub
commit c7b7259302
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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