Skip to content

Expose "cache-key" as an output of cache-restore #1129

Description

@danwulff

Description:

While the cache-hit output tells us whether a cache was found, the action currently does not expose which "cache key" was used.

Justification:

A cache-key could be helpful to manually purge caches created in a pull request upon pull request closure. In very active repos, 10GB cache limit could cause the default branch cache to be purged prior to pull request (branch) caches. Providing a cache-key would allow folks to choose whether to purge caches manually. Combined with #663 this could give users more flexibility in controlling caches.

Are you willing to submit a PR?

Yes, I'll see if I can find some time create a PR.

Metadata

Metadata

Assignees

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions