mirror of https://github.com/actions/toolkit
Add option to overwrite the files on cache extraction
parent
b7a00a3203
commit
b1433cb0ba
|
@ -111,6 +111,9 @@ async function getTarArgs(
|
|||
|
||||
// Platform specific args
|
||||
if (tarPath.type === ArchiveToolType.GNU) {
|
||||
// Make sure any existing files are overwritten
|
||||
args.push('--overwrite')
|
||||
|
||||
switch (process.platform) {
|
||||
case 'win32':
|
||||
args.push('--force-local')
|
||||
|
|
Loading…
Reference in New Issue