mirror of
https://github.com/actions/cache.git
synced 2025-09-19 14:24:15 +00:00
Merge 3214fb2af73f94d4443d8cadebe3f51567595f02 into c7c46bcb6db3c571021a3a2dc2d2557b512ecace
This commit is contained in:
commit
fed229c009
@ -10,14 +10,14 @@ See ["Caching dependencies to speed up workflows"](https://help.github.com/githu
|
||||
|
||||
## What's New
|
||||
|
||||
* Added support for multiple paths, [glob patterns](https://github.com/actions/toolkit/tree/main/packages/glob), and single file caches.
|
||||
* Added support for multiple paths, [glob patterns](https://github.com/actions/toolkit/tree/main/packages/glob), and single file caches (see [caveats on negative patterns](https://github.com/actions/cache/issues/494)).
|
||||
|
||||
```yaml
|
||||
- name: Cache multiple paths
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/cache
|
||||
~/cache/*
|
||||
!~/cache/exclude
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user