actions / actions/toolkit

Check if a cache exists without downloading the files

Open
#500 1 comment 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cache enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement
Have the ability to check if a cache exists without downloading the actual files.

Code Snippet
N/A

Additional information
Re-use the existing cache check functionality from restoreCache method in here and export it as a validateCache method.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in packages/cache/src/cache.ts at the existing restoreCache method and its cache-check functionality. Expose that check as validateCache without downloading the cached files; done means callers can use the exported method to determine whether a cache exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
devtools
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.