diff --git a/packages/cache/src/internal/tar.ts b/packages/cache/src/internal/tar.ts index 97d36d3a..6d48e7b8 100644 --- a/packages/cache/src/internal/tar.ts +++ b/packages/cache/src/internal/tar.ts @@ -146,9 +146,9 @@ async function getCommands( IS_WINDOWS if (BSD_TAR_ZSTD && type !== 'create') { - args = [...compressionArgs, ...tarArgs] + args = [[...compressionArgs].join(' '), [...tarArgs].join(' ')] } else { - args = [...tarArgs, ...compressionArgs] + args = [[...tarArgs].join(' '), [...compressionArgs].join(' ')] } if (BSD_TAR_ZSTD) {