Skip to content

Commit 51c678b

Browse files
author
Martin Lopes
committed
Updated example
1 parent faa3c52 commit 51c678b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/actions/guides/caching-dependencies-to-speed-up-workflows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ For more information, see [`actions/cache`](https://github.com/actions/cache).
6262
- Paths can be either directories or single files, and glob patterns are supported.
6363
- With `v2` of the `cache` action, you can specify a single path, or multiple paths as a block of newline-separated lines. For example:
6464
```
65-
- name: Cache multiple paths
65+
- name: Cache Gradle packages
6666
uses: actions/cache@v2
6767
with:
6868
path: |
69-
~/cache
70-
~/cache/subdir
69+
~/.gradle/caches
70+
~/.gradle/wrapper
7171
```
7272
- With `v1` of the `cache` action, only a single path is supported and it must be a directory. You cannot cache a single file.
7373
- `restore-keys`: **Optional** An ordered list of alternative keys to use for finding the cache if no cache hit occurred for `key`.

0 commit comments

Comments
 (0)