mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-19 19:46:17 +02:00
Merge 3214fb2af7
into c7c46bcb6d
This commit is contained in:
commit
fed229c009
1 changed files with 2 additions and 2 deletions
|
@ -10,14 +10,14 @@ See ["Caching dependencies to speed up workflows"](https://help.github.com/githu
|
||||||
|
|
||||||
## What's New
|
## 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
|
```yaml
|
||||||
- name: Cache multiple paths
|
- name: Cache multiple paths
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/cache
|
~/cache/*
|
||||||
!~/cache/exclude
|
!~/cache/exclude
|
||||||
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue