From 5cee9fa885267105445bf05f7e09023302c87f2c Mon Sep 17 00:00:00 2001 From: Jorge Langa <6546145+jlanga@users.noreply.github.com> Date: Fri, 17 Nov 2023 10:16:13 +0100 Subject: [PATCH] Add --remove-files on tarball creation --- dist/save-only/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 2f50001..ca48fd4 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -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