From 2086306d9c0f866eb68c70488ab86c2917e3e819 Mon Sep 17 00:00:00 2001 From: Jason Axelson Date: Sat, 6 Feb 2021 13:36:42 -1000 Subject: [PATCH 1/2] Make it more obvious that the cache call does double duty --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8c0a808..7c5bf2d 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,8 @@ jobs: run: /primes.sh -d prime-numbers ``` +Note: The call to cache both restores the cache and sets up a hook to restore the cache at the end of the workflow so you need to add the cache step near the beginning of your workflow. + ## Implementation Examples Every programming language and framework has its own way of caching. From 8829e97be1115f1ebd06bfe5d45b80a4cbf8edf4 Mon Sep 17 00:00:00 2001 From: Vipul Date: Mon, 27 Jun 2022 10:48:52 +0530 Subject: [PATCH 2/2] Update README.md Co-authored-by: Lucas Costi --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c5bf2d..cc9889f 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ jobs: run: /primes.sh -d prime-numbers ``` -Note: The call to cache both restores the cache and sets up a hook to restore the cache at the end of the workflow so you need to add the cache step near the beginning of your workflow. +> Note: You must use the `cache` action in your workflow before you need to use the files that might be restored from the cache. If the provided `key` doesn't match an existing cache, a new cache is automatically created if the job completes successfully. ## Implementation Examples