Skip to content

Commit

Permalink
Respect $HOME on macOS for caching
Browse files Browse the repository at this point in the history
Fixes ruby#583
  • Loading branch information
fkorotkov committed Apr 22, 2024
1 parent 6bd3d99 commit 2e29e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2e29e5e

Please sign in to comment.