mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-02 09:13:19 +08:00
Add debug statements
This commit is contained in:
2
packages/cache/src/internal/cacheUtils.ts
vendored
2
packages/cache/src/internal/cacheUtils.ts
vendored
@@ -95,7 +95,9 @@ async function getVersion(app: string): Promise<string> {
|
||||
// Use zstandard if possible to maximize cache performance
|
||||
export async function getCompressionMethod(): Promise<CompressionMethod> {
|
||||
const versionOutput = await getVersion('zstd')
|
||||
core.debug(`versionOutput: ${versionOutput}`)
|
||||
const version = semver.clean(versionOutput)
|
||||
core.debug(`version: ${version}`)
|
||||
|
||||
if (!versionOutput.toLowerCase().includes('zstd command line interface')) {
|
||||
// zstd is not installed
|
||||
|
||||
Reference in New Issue
Block a user