From d70353d8a448b3baa818df70890547be4105111c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?SIGUI=20Kess=C3=A9=20Emmanuel?= <ske@sikessem.com>
Date: Mon, 26 Dec 2022 07:12:18 +0100
Subject: [PATCH 1/3] :memo: #1045 update using the `set-output` command is
 deprecated

---
 README.md   | 2 +-
 examples.md | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 1562039..9266887 100644
--- a/README.md
+++ b/README.md
@@ -145,7 +145,7 @@ Additionally, you can use arbitrary command output in a cache key, such as a dat
   - name: Get Date
     id: get-date
     run: |
-      echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
+      echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
     shell: bash
 
   - uses: actions/cache@v3
diff --git a/examples.md b/examples.md
index 13741fb..0062216 100644
--- a/examples.md
+++ b/examples.md
@@ -357,7 +357,7 @@ The yarn cache directory will depend on your operating system and version of `ya
 ```yaml
 - name: Get yarn cache directory path
   id: yarn-cache-dir-path
-  run: echo "::set-output name=dir::$(yarn cache dir)"
+  run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
 
 - uses: actions/cache@v3
   id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
@@ -375,7 +375,7 @@ The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/c
 ```yaml
 - name: Get yarn cache directory path
   id: yarn-cache-dir-path
-  run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
+  run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
 
 - uses: actions/cache@v3
   id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
@@ -420,7 +420,7 @@ Esy allows you to export built dependencies and import pre-built dependencies.
 - name: Get Composer Cache Directory
   id: composer-cache
   run: |
-    echo "::set-output name=dir::$(composer config cache-files-dir)"
+    echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
 - uses: actions/cache@v3
   with:
     path: ${{ steps.composer-cache.outputs.dir }}
@@ -512,7 +512,7 @@ jobs:
 - name: Get pip cache dir
   id: pip-cache
   run: |
-    echo "::set-output name=dir::$(pip cache dir)"
+    echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
 
 - name: pip cache
   uses: actions/cache@v3

From c9869a589feb07fed17029ccb75a96e3c2e81428 Mon Sep 17 00:00:00 2001
From: Kurt McKee <contactme@kurtmckee.org>
Date: Sun, 15 Jan 2023 19:17:28 -0600
Subject: [PATCH 2/3] Fix a whitespace typo (#1074)

---
 restore/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/restore/README.md b/restore/README.md
index e6592d6..fdfbbd7 100644
--- a/restore/README.md
+++ b/restore/README.md
@@ -1,6 +1,6 @@
 # Restore action
 
-The restore action, as the name suggest, restores a cache. It acts similar to the`cache` action except that it doesn't have a post step to save the cache. This action can provide you a granular control to only restore a cache without having to necessarily save it.  It accepts the same set of inputs as the `cache` action.
+The restore action, as the name suggest, restores a cache. It acts similar to the `cache` action except that it doesn't have a post step to save the cache. This action can provide you a granular control to only restore a cache without having to necessarily save it.  It accepts the same set of inputs as the `cache` action.
 
 ## Inputs
 

From 22cbf49050c8786eaada2e90f2f3c4ea0fb20ad5 Mon Sep 17 00:00:00 2001
From: Ruud Kamphuis <ruudk@users.noreply.github.com>
Date: Mon, 16 Jan 2023 13:11:13 +0100
Subject: [PATCH 3/3] Fix referenced output key in save action readme (#1061)

Co-authored-by: Vipul <vsvipul@github.com>
Co-authored-by: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
---
 save/README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/save/README.md b/save/README.md
index fb6fe90..139b136 100644
--- a/save/README.md
+++ b/save/README.md
@@ -54,7 +54,7 @@ Case 1: Where an user would want to reuse the key as it is
 ```yaml
 uses: actions/cache/save@v3
 with:
-    key: ${{ steps.restore-cache.outputs.key }}
+    key: ${{ steps.restore-cache.outputs.cache-primary-key }}
 ```
 
 Case 2: Where the user would want to re-evaluate the key