diff --git a/common.js b/common.js index f15cf11f5..75c87d95f 100644 --- a/common.js +++ b/common.js @@ -265,7 +265,7 @@ function getDefaultToolCachePath() { if (platform.startsWith('ubuntu-')) { return '/opt/hostedtoolcache' } else if (platform.startsWith('macos-')) { - return '/Users/runner/hostedtoolcache' + return path.join(os.homedir(), 'hostedtoolcache') } else if (platform.startsWith('windows-')) { return 'C:\\hostedtoolcache\\windows' } else {