mirror of
https://github.com/actions/cache.git
synced 2026-06-23 17:43:50 +08:00
Compare commits
3 Commits
v4.2.0
...
65c1fd9244
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65c1fd9244 | ||
|
|
53aa38c736 | ||
|
|
63d8658a94 |
@@ -126,7 +126,7 @@ jobs:
|
||||
run: /primes.sh -d prime-numbers
|
||||
```
|
||||
|
||||
The `cache` action provides a `cache-hit` output which is set to `true` when the cache is restored using the primary `key` and `false` when the cache is restored using `restore-keys` or no cache is restored.
|
||||
The `cache` action provides a `cache-hit` output which is set to `true` when the cache is restored using the primary `key` and `false` when the cache is restored using `restore-keys`. If no cache is restored, it is set to the empty string.
|
||||
|
||||
#### Using a combination of restore and save actions
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ The [GitHub Context](https://docs.github.com/en/actions/learn-github-actions/con
|
||||
|
||||
While setting paths for caching dependencies it is important to give correct path depending on the hosted runner you are using or whether the action is running in a container job. Assigning different `path` for save and restore will result in cache miss.
|
||||
|
||||
Below are GiHub hosted runner specific paths one should take care of when writing a workflow which saves/restores caches across OS.
|
||||
Below are GitHub hosted runner specific paths one should take care of when writing a workflow which saves/restores caches across OS.
|
||||
|
||||
#### Ubuntu Paths
|
||||
|
||||
|
||||
Reference in New Issue
Block a user