mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-21 06:19:06 +08:00
Fix spread operator for getCompressionMethod
This commit is contained in:
parent
2ae31879b7
commit
ed96e21792
4
packages/cache/src/internal/tar.ts
vendored
4
packages/cache/src/internal/tar.ts
vendored
@ -83,7 +83,7 @@ export async function listTar(
|
|||||||
compressionMethod: CompressionMethod
|
compressionMethod: CompressionMethod
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const args = [
|
const args = [
|
||||||
getCompressionProgram(compressionMethod),
|
...getCompressionProgram(compressionMethod),
|
||||||
'-tf',
|
'-tf',
|
||||||
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||||
'-P'
|
'-P'
|
||||||
@ -99,7 +99,7 @@ export async function extractTar(
|
|||||||
const workingDirectory = getWorkingDirectory()
|
const workingDirectory = getWorkingDirectory()
|
||||||
await io.mkdirP(workingDirectory)
|
await io.mkdirP(workingDirectory)
|
||||||
const args = [
|
const args = [
|
||||||
getCompressionProgram(compressionMethod),
|
...getCompressionProgram(compressionMethod),
|
||||||
'-xf',
|
'-xf',
|
||||||
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
archivePath.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
|
||||||
'-P',
|
'-P',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user