mirror of
https://github.com/actions/toolkit.git
synced 2026-08-27 00:00:33 +02:00
Add debug statement for exact zstd version value and remove dependence on version for now
This commit is contained in:
+2
-2
@@ -100,9 +100,9 @@ async function getVersion(
|
||||
export async function getCompressionMethod(): Promise<CompressionMethod> {
|
||||
const versionOutput = await getVersion('zstd', ['--quiet'])
|
||||
const version = semver.clean(versionOutput)
|
||||
core.debug(`zstd version: ${version}`)
|
||||
|
||||
if (versionOutput === '' || version === null) {
|
||||
// zstd is not installed
|
||||
if (versionOutput === '') {
|
||||
return CompressionMethod.Gzip
|
||||
} else {
|
||||
return CompressionMethod.ZstdWithoutLong
|
||||
|
||||
Reference in New Issue
Block a user