diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 0e94d684e..77ff87f02 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -1709,7 +1709,7 @@ function getTarArgs(tarPath, compressionMethod, type, archivePath = '') { : cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '-P', '-C', workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '--files-from', constants_1.ManifestFilename); break; case 'extract': - args.push('--skip-old-files', '-xf', BSD_TAR_ZSTD + args.push('-xf', BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '-P', '-C', workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/')); break; diff --git a/dist/setup/index.js b/dist/setup/index.js index d627dce5d..c1458d524 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -1709,7 +1709,7 @@ function getTarArgs(tarPath, compressionMethod, type, archivePath = '') { : cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '-P', '-C', workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '--files-from', constants_1.ManifestFilename); break; case 'extract': - args.push('--skip-old-files', '-xf', BSD_TAR_ZSTD + args.push('-xf', BSD_TAR_ZSTD ? tarFile : archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'), '-P', '-C', workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/')); break; diff --git a/package-lock.json b/package-lock.json index 46f0e865c..7aac13a52 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "5.0.0", "license": "MIT", "dependencies": { - "@actions/cache": "npm:@useblacksmith/cache@3.2.131", + "@actions/cache": "npm:@useblacksmith/cache@3.2.132", "@actions/core": "^1.10.0", "@actions/exec": "^1.1.0", "@actions/glob": "^0.4.0", @@ -48,9 +48,9 @@ }, "node_modules/@actions/cache": { "name": "@useblacksmith/cache", - "version": "3.2.131", - "resolved": "https://registry.npmjs.org/@useblacksmith/cache/-/cache-3.2.131.tgz", - "integrity": "sha512-RyVrXiqiwiqKz+7szflEc9MloJq4BPZ25DF6JrZ/G4CbkNPt4IdXTFM01QQ2/G7+45xHcBrr8tBEXZjkqrCVPw==", + "version": "3.2.132", + "resolved": "https://registry.npmjs.org/@useblacksmith/cache/-/cache-3.2.132.tgz", + "integrity": "sha512-UHYhMQthXT4Eho3cywUC70fwnGXySU8y7Fe9khS5W+o6j6N3s+OhmT7grq4/2xDIt+6Bv947XPmUiQzxKRlxgg==", "dependencies": { "@actions/core": "^1.10.0", "@actions/exec": "^1.0.1", diff --git a/package.json b/package.json index d30479bdb..4884a35d2 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "author": "GitHub", "license": "MIT", "dependencies": { - "@actions/cache": "npm:@useblacksmith/cache@3.2.131", + "@actions/cache": "npm:@useblacksmith/cache@3.2.132", "@actions/core": "^1.10.0", "@actions/exec": "^1.1.0", "@actions/glob": "^0.4.0",