mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-24 12:25:32 +00:00
Added save readme
This commit is contained in:
parent
adecab4b4a
commit
9d445b2565
2 changed files with 92 additions and 2 deletions
|
@ -115,4 +115,12 @@ steps:
|
|||
|
||||
- name: Build
|
||||
run: /build.sh
|
||||
```
|
||||
```
|
||||
|
||||
## Tips
|
||||
|
||||
Since this action comes with its own set of pros and cons, we are listing some of the ways by which you can tackle the limitations.
|
||||
|
||||
### Reusing primary key and restored key in the save action
|
||||
|
||||
One of the limitation you might experience is passing the same input in both `actions/cache/restore` and `actions/cache/save` action. To avoid this, you can make use of the `outputs` from the restore action to reuse the same primary key and also the key of the cache that was restored. This way changing any key in the restore action will automatically reflect in the subsequent actions where the same input is being used.
|
Loading…
Add table
Add a link
Reference in a new issue