Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow optionally testing for cache-hit without restoring old cache聽#831

Copy link
Copy link

Description

@ankith26
Issue body actions

First of all, thanks to the maintainers and contributors who keep this project up, which helps make CI cache handling simple! 馃コ

Use case

I have a build matrix with 5 jobs, that need to access (but not write) a common cache.
To update this cache, I have a job that this matrix depends on (that runs before it). This job restores cache and populates cache on a cache miss, so that subsequent jobs can use it.

This works, but there is an unneeded step of restoring cache in my first job, when all I want to do is to just test for a cache miss, rebuild in that case and upload new cache.

Proposal

There should be an input dry-run/test-cache/no-pull/[anything-else-here] (yes naming things is hard馃槄) that should control whether the cache is pulled initially (should default to yes). Then cache-hit should be set accordingly, and post cache step should run normally

Reactions are currently unavailable

Metadata

Metadata

Labels

area:granular-controlIssues related to granular control in saving or restoring cacheIssues related to granular control in saving or restoring cache

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.