mirror of https://github.com/actions/toolkit
Fix spread operator for getCompressionMethod
parent
2ae31879b7
commit
ed96e21792
|
@ -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…
Reference in New Issue