Skip to content

Cache: Provide a way to suppress cache success messages #2222

@matejdro

Description

@matejdro

Describe the enhancement

Currently, cache always outputs lots of logs for every stored cache entry:

core.info(
`Cache Size: ~${Math.round(
archiveFileSize / (1024 * 1024)
)} MB (${archiveFileSize} B)`
)
if (core.isDebug()) {
await listTar(archivePath, compressionMethod)
}
await extractTar(archivePath, compressionMethod)
core.info('Cache restored successfully')

If cache action is wrapped in another action (such as burrunan/gradle-cache-action#139), where cache is invoked lots of times, it can create very verbose output.

Could we add an input parameter that disables those logs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions