Changes for README.md: 5 added lines, 5 removed lines.
Original line number
Diff line number
Diff line
@@ -14,7 +14,7 @@ See ["Caching dependencies to speed up workflows"](https://help.github.com/githu
```yaml
-name:Cache multiple paths
uses:actions/cache@v2
uses:actions/cache@v3
with:
path:|
~/cache
@@ -69,7 +69,7 @@ jobs:
-name:Cache Primes
id:cache-primes
uses:actions/cache@v2
uses:actions/cache@v3
with:
path:prime-numbers
key:${{ runner.os }}-primes
@@ -119,7 +119,7 @@ A cache key can include any of the contexts, functions, literals, and operators
For example, using the [`hashFiles`](https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#hashfiles) function allows you to create a new cache when dependencies change.
```yaml
-uses:actions/cache@v2
-uses:actions/cache@v3
with:
path:|
path/to/dependencies
@@ -137,7 +137,7 @@ Additionally, you can use arbitrary command output in a cache key, such as a dat
@@ -54,10 +54,10 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
```
Depending on the environment, huge packages might be pre-installed in the global cache folder.
With `actions/cache@v2` you can now exclude unwanted packages with [exclude pattern](https://github.com/actions/toolkit/tree/main/packages/glob#exclude-patterns)
With `actions/cache@v3` you can now exclude unwanted packages with [exclude pattern](https://github.com/actions/toolkit/tree/main/packages/glob#exclude-patterns)
```yaml
-uses:actions/cache@v2
-uses:actions/cache@v3
with:
path:|
~/.nuget/packages
@@ -74,7 +74,7 @@ Or you could move the cache folder like below.
@@ -236,7 +236,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
>Note: Ensure no Gradle daemons are running anymore when your workflow completes. Creating the cache package might fail due to locks being held by Gradle. Refer to the [Gradle Daemon documentation](https://docs.gradle.org/current/userguide/gradle_daemon.html) on how to disable or stop the Gradle Daemons.
```yaml
-uses:actions/cache@v2
-uses:actions/cache@v3
with:
path:|
~/.gradle/caches
@@ -250,7 +250,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba