toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Add option to overwrite the files on cache extraction

Open siburny opened this issue 1 year ago • 4 comments

When using GNU tar, if a file already exists, from a previous run or another cached action, it results in a slew of warning messages.

This change adds the use of --overwrite when using GNU tar so that any existing file will just be overwritten.

Similar issue was fixed in the @actions/tool-cache package, but not in @actions/cache: https://github.com/actions/toolkit/pull/807/files#diff-725a5ef102ee3762738a5500c3d7c5b6afef874a1cb67c55085ad5e4615b1a6f

This PR supersedes https://github.com/actions/toolkit/pull/1704

siburny avatar Dec 05 '24 00:12 siburny