cache icon indicating copy to clipboard operation
cache copied to clipboard

Document how cache scoping works with tags

Open dabrahams opened this issue 1 year ago • 5 comments

The documentation says that caches are scoped to branches. Suppose I am building from a tag? The tag might be at the tip of one or more branches, or it might not be at the tip of any branch. How does it decide which caches are in scope? This information should be in the documentation. See also #1178, #79, #1175

Thanks!

dabrahams avatar Feb 29 '24 23:02 dabrahams

I think https://docs.github.com/en/actions/reference/dependency-caching-reference#restrictions-for-accessing-a-cache may answer your question.

tothambrus11 avatar Jul 20 '25 10:07 tothambrus11

It doesn't answer whether any branch caches are available to a tag test.

dabrahams avatar Jul 20 '25 18:07 dabrahams

https://github.com/actions/cache/issues/1342

antonoff avatar Aug 12 '25 04:08 antonoff

Image

antonoff avatar Aug 12 '25 07:08 antonoff

smartcars.json

antonoff avatar Aug 12 '25 07:08 antonoff