actions / actions/cache

restore a varying number of different keys?

Open
#1,459 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.6k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Hi there,

I am currently setting up an action workflow where many small jobs compute bits of information that need to be passed on to other jobs in a directed acyclic graph as cache objects.
A major challenge for me in defining this elegantly is that I would like each job to use the same reusable workflow template, but need the jobs to be able to restore a varying number of caches with different known cache keys (as the number of parent jobs in the graph can differ).

However, I can't find an action interface that can restore multiple keys together or a way to iterate the cache/restore action within a single job. Is this simply not supported or am I just unable to see a valid way to do this?

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 by reviewing the GitHub Actions cache/restore action interface and reusable workflow behavior described in the issue. Determine whether one job can restore multiple known cache keys or iterate cache/restore, and define done as either a documented supported approach or a clearly scoped proposal for enabling it.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.