mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-04 17:52:53 +01:00
Add --remove-files on tarball creation
This commit is contained in:
parent
704facf57e
commit
5cee9fa885
1 changed files with 1 additions and 1 deletions
2
dist/save-only/index.js
vendored
2
dist/save-only/index.js
vendored
|
@ -36635,7 +36635,7 @@ function getTarArgs(tarPath, compressionMethod, type, archivePath = '') {
|
|||
// Method specific args
|
||||
switch (type) {
|
||||
case 'create':
|
||||
args.push('--posix', '-cf', BSD_TAR_ZSTD
|
||||
args.push('--posix', '--remove-files', '-cf', BSD_TAR_ZSTD
|
||||
? tarFile
|
||||
: cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '--exclude', BSD_TAR_ZSTD
|
||||
? tarFile
|
||||
|
|
Loading…
Reference in a new issue