From 7ed7f22ed87596cd0d1c13baca967dc49bd9dc6f Mon Sep 17 00:00:00 2001
From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
Date: Mon, 6 Jun 2022 09:40:27 +0000
Subject: [PATCH 1/3] Updated actions/cache to v2.0.6

---
 dist/restore/index.js |  2 ++
 dist/save/index.js    |  2 ++
 package-lock.json     | 14 +++++++-------
 package.json          |  2 +-
 4 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/dist/restore/index.js b/dist/restore/index.js
index 06e8122..9351a66 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -37317,6 +37317,8 @@ function createTar(archiveFolder, sourceDirectories, compressionMethod) {
             ...getCompressionProgram(),
             '-cf',
             cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
+            '--exclude',
+            cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
             '-P',
             '-C',
             workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
diff --git a/dist/save/index.js b/dist/save/index.js
index ef4d318..983cb5d 100644
--- a/dist/save/index.js
+++ b/dist/save/index.js
@@ -37317,6 +37317,8 @@ function createTar(archiveFolder, sourceDirectories, compressionMethod) {
             ...getCompressionProgram(),
             '-cf',
             cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
+            '--exclude',
+            cacheFileName.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
             '-P',
             '-C',
             workingDirectory.replace(new RegExp(`\\${path.sep}`, 'g'), '/'),
diff --git a/package-lock.json b/package-lock.json
index 878008b..7368e95 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
       "version": "3.0.3",
       "license": "MIT",
       "dependencies": {
-        "@actions/cache": "^2.0.5",
+        "@actions/cache": "^2.0.6",
         "@actions/core": "^1.7.0",
         "@actions/exec": "^1.1.1",
         "@actions/io": "^1.1.2"
@@ -36,9 +36,9 @@
       }
     },
     "node_modules/@actions/cache": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-2.0.5.tgz",
-      "integrity": "sha512-aG06dsgcVtiuHLJsIfwrDtvzNNJQ+Iqk8DQt1IeI6gG7ezmLaSdZkHEwA/DNrm5TtOahLcgGEo2SXqbFElVMQg==",
+      "version": "2.0.6",
+      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-2.0.6.tgz",
+      "integrity": "sha512-Z39ZrWaTRRPaV/AOQdY7hve+Iy/HloH5prpz+k+0lZgGQs/3SeO0UYSIakVuXOk2pdMZnl0Nv0PoK1rmh9YfGQ==",
       "dependencies": {
         "@actions/core": "^1.2.6",
         "@actions/exec": "^1.0.1",
@@ -9533,9 +9533,9 @@
   },
   "dependencies": {
     "@actions/cache": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-2.0.5.tgz",
-      "integrity": "sha512-aG06dsgcVtiuHLJsIfwrDtvzNNJQ+Iqk8DQt1IeI6gG7ezmLaSdZkHEwA/DNrm5TtOahLcgGEo2SXqbFElVMQg==",
+      "version": "2.0.6",
+      "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-2.0.6.tgz",
+      "integrity": "sha512-Z39ZrWaTRRPaV/AOQdY7hve+Iy/HloH5prpz+k+0lZgGQs/3SeO0UYSIakVuXOk2pdMZnl0Nv0PoK1rmh9YfGQ==",
       "requires": {
         "@actions/core": "^1.2.6",
         "@actions/exec": "^1.0.1",
diff --git a/package.json b/package.json
index 30cdd88..64fb57c 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
   "author": "GitHub",
   "license": "MIT",
   "dependencies": {
-    "@actions/cache": "^2.0.5",
+    "@actions/cache": "^2.0.6",
     "@actions/core": "^1.7.0",
     "@actions/exec": "^1.1.1",
     "@actions/io": "^1.1.2"

From c296e6a08c6a639ec6e35fbfdcde61c3f6107885 Mon Sep 17 00:00:00 2001
From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
Date: Mon, 6 Jun 2022 09:55:39 +0000
Subject: [PATCH 2/3] Updated @actions/cache version in license file

---
 .licenses/npm/@actions/cache.dep.yml | Bin 1230 -> 1230 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/.licenses/npm/@actions/cache.dep.yml b/.licenses/npm/@actions/cache.dep.yml
index f3f6ad9b3a27b9126ad40aa84d93eeda75c9eab2..e2af04cfedaf5de4837743c87043e8e3c830a60c 100644
GIT binary patch
delta 12
TcmX@dd5&{}2BX<V&7~{=9jyc*

delta 12
TcmX@dd5&{}2BYal&7~{=9jF8#


From dd58d1315fbfa379835d53b0bc75d1a3420fcaf0 Mon Sep 17 00:00:00 2001
From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
Date: Mon, 6 Jun 2022 12:31:18 +0000
Subject: [PATCH 3/3] Added release info and upgraded version

---
 RELEASES.md       | 5 ++++-
 package-lock.json | 4 ++--
 package.json      | 2 +-
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/RELEASES.md b/RELEASES.md
index 59bb4a6..87e9980 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -11,4 +11,7 @@
 - Added support for dynamic cache size cap on GHES.
 
 ### 3.0.3
-- Fixed avoiding empty cache save when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624))
\ No newline at end of file
+- Fixed avoiding empty cache save when no files are available for caching. ([issue](https://github.com/actions/cache/issues/624))
+
+### 3.0.4
+- Fixed tar creation error while trying to create tar with path has `~/` home folder on ubuntu-latest. ([issue](https://github.com/actions/cache/issues/689))
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 7368e95..fec209b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "cache",
-  "version": "3.0.3",
+  "version": "3.0.4",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "cache",
-      "version": "3.0.3",
+      "version": "3.0.4",
       "license": "MIT",
       "dependencies": {
         "@actions/cache": "^2.0.6",
diff --git a/package.json b/package.json
index 64fb57c..5d418b2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cache",
-  "version": "3.0.3",
+  "version": "3.0.4",
   "private": true,
   "description": "Cache dependencies and build outputs",
   "main": "dist/restore/index.js",