From 2086306d9c0f866eb68c70488ab86c2917e3e819 Mon Sep 17 00:00:00 2001
From: Jason Axelson <jason.axelson@gmail.com>
Date: Sat, 6 Feb 2021 13:36:42 -1000
Subject: [PATCH 1/4] 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 d25c51bbfd594e35fe9630893979b06e853530a0 Mon Sep 17 00:00:00 2001
From: Mike Pilgrem <mpilgrem@users.noreply.github.com>
Date: Sun, 12 Jun 2022 16:45:20 +0100
Subject: [PATCH 2/4] Adapt existing Haskell Stack example for Windows

The default `STACK_ROOT` is `~/.stack` only on Unix-like operating systems. On Windows, the default is `%APPDATA%/stack` (usually `%HOME%\AppData\Roaming\stack`).

On Unix-like OSs, Stack stores GHC and other tools in a `programs` directory in the `STACK_ROOT`. On Windows, Stack stores those tools and MSYS2 in `%LOCALAPPDATA%\Programs\stack` (usually `%HOME%\AppData\Local\Programs\stack`).
---
 examples.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/examples.md b/examples.md
index 47c2b22..d9c4499 100644
--- a/examples.md
+++ b/examples.md
@@ -223,6 +223,8 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
 
 ## Haskell - Stack
 
+### Linux or macOS
+
 ```yaml
 - uses: actions/cache@v3
   name: Cache ~/.stack
@@ -240,6 +242,27 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
       ${{ runner.os }}-stack-work-
 ```
 
+### Windows
+
+```yaml
+- uses: actions/cache@v3
+  name: Cache %APPDATA%\stack %LOCALAPPDATA%\Programs\stack
+  with:
+    path: |
+      ~\AppData\Roaming\stack
+      ~\AppData\Local\Programs\stack    
+    key: ${{ runner.os }}-stack-global-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}
+    restore-keys: |
+      ${{ runner.os }}-stack-global-
+- uses: actions/cache@v3
+  name: Cache .stack-work
+  with:
+    path: .stack-work
+    key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}-${{ hashFiles('**/*.hs') }}
+    restore-keys: |
+      ${{ runner.os }}-stack-work-
+```
+
 ## Java - Gradle
 
 >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.

From 5cc84c012398469b34beb3321a27a56652b45c64 Mon Sep 17 00:00:00 2001
From: Vipul <vsvipul@github.com>
Date: Sun, 26 Jun 2022 05:26:49 +0000
Subject: [PATCH 3/4] Add kotewar and remove phantsure from auto-assignees
 lists

---
 .github/auto_assign.yml                  | 2 +-
 .github/workflows/auto-assign-issues.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml
index 0cbc269..4b62284 100644
--- a/.github/auto_assign.yml
+++ b/.github/auto_assign.yml
@@ -6,7 +6,7 @@ addAssignees: false
 
 # A list of reviewers to be added to pull requests (GitHub user name)
 reviewers:
-  - phantsure
+  - kotewar
   - aparna-ravindra
   - tiwarishub
   - vsvipul
diff --git a/.github/workflows/auto-assign-issues.yml b/.github/workflows/auto-assign-issues.yml
index 23ddc28..fe7fa42 100644
--- a/.github/workflows/auto-assign-issues.yml
+++ b/.github/workflows/auto-assign-issues.yml
@@ -11,5 +11,5 @@ jobs:
             - name: 'Auto-assign issue'
               uses: pozil/auto-assign-issue@v1.4.0
               with:
-                  assignees: phantsure,tiwarishub,aparna-ravindra,vsvipul,bishal-pdmsft
+                  assignees: kotewar,tiwarishub,aparna-ravindra,vsvipul,bishal-pdmsft
                   numOfAssignee: 1

From 8829e97be1115f1ebd06bfe5d45b80a4cbf8edf4 Mon Sep 17 00:00:00 2001
From: Vipul <vsvipul@github.com>
Date: Mon, 27 Jun 2022 10:48:52 +0530
Subject: [PATCH 4/4] Update README.md

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
---
 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