mirror of https://github.com/actions/toolkit
Fix permissions issues using gtar on mac
parent
a6966e3148
commit
547a77cf75
|
@ -26,6 +26,8 @@ async function getTarPath(
|
||||||
case 'darwin': {
|
case 'darwin': {
|
||||||
const gnuTar = await io.which('gtar', false)
|
const gnuTar = await io.which('gtar', false)
|
||||||
if (gnuTar) {
|
if (gnuTar) {
|
||||||
|
// fix permission denied errors when extracting BSD tar archive with GNU tar - https://github.com/actions/cache/issues/527
|
||||||
|
args.push('--delay-directory-restore')
|
||||||
return gnuTar
|
return gnuTar
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue