1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-19 19:46:17 +02:00

updated README

This commit is contained in:
Mikhail Katychev 2022-02-16 12:31:41 -06:00
parent 0eb8a70da9
commit 812ea06c01
No known key found for this signature in database
GPG key ID: 9E8549CD2CEB5E59

View file

@ -45,8 +45,9 @@ If you are using this inside a container, a POSIX-compliant `tar` needs to be in
### Outputs ### Outputs
* `cache-hit` - A boolean value to indicate an exact match was found for the key * `cache-hit` - A boolean value to indicate an exact match was found for the key
* `cache-restored` - A boolean value to a match was found resulting in a restored cache
> See [Skipping steps based on cache-hit](#Skipping-steps-based-on-cache-hit) for info on using this output > See [Skipping steps based on `cache-hit`](#Skipping-steps-based-on-cache-hit) for info on using this output
### Cache scopes ### Cache scopes
The cache is scoped to the key and branch. The default branch cache is available to other branches. The cache is scoped to the key and branch. The default branch cache is available to other branches.
@ -147,7 +148,7 @@ See [Using contexts to create cache keys](https://help.github.com/en/actions/con
A repository can have up to 10GB of caches. Once the 10GB limit is reached, older caches will be evicted based on when the cache was last accessed. Caches that are not accessed within the last week will also be evicted. A repository can have up to 10GB of caches. Once the 10GB limit is reached, older caches will be evicted based on when the cache was last accessed. Caches that are not accessed within the last week will also be evicted.
## Skipping steps based on cache-hit ## Skipping steps based on `cache-hit`
Using the `cache-hit` output, subsequent steps (such as install or build) can be skipped when a cache hit occurs on the key. Using the `cache-hit` output, subsequent steps (such as install or build) can be skipped when a cache hit occurs on the key.