From 78b088d460db4da47f8a9379ad70cddf942444f9 Mon Sep 17 00:00:00 2001
From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
Date: Tue, 22 Nov 2022 07:22:26 +0000
Subject: [PATCH] Changed input value

---
 action.yml            | 2 +-
 dist/restore/index.js | 4 ++--
 src/restore.ts        | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/action.yml b/action.yml
index 334e201..31936c6 100644
--- a/action.yml
+++ b/action.yml
@@ -17,7 +17,7 @@ inputs:
   strict-restore:
     description: 'Fail the workflow if the cache is not found for the given key.'
     required: false
-    default: "false"
+    default: "no"
   save-cache-on-any-failure:
     description: 'Save cache despite of any failure in the build steps'
     required: false
diff --git a/dist/restore/index.js b/dist/restore/index.js
index 590681e..aec1b3c 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -48998,7 +48998,7 @@ function run() {
                 core.info(`Input Variable ${constants_1.Variables.SaveCacheOnAnyFailure} is set to yes, the cache will be saved despite of any failure in the build.`);
             }
             if (!cacheKey) {
-                if (core.getInput(constants_1.Inputs.StrictRestore) == "true") {
+                if (core.getInput(constants_1.Inputs.StrictRestore) == "yes") {
                     throw new Error(`Cache with the given input key ${primaryKey} is not found, hence exiting the workflow as the strict-restore requirement is not met.`);
                 }
                 core.info(`Cache not found for input keys: ${[
@@ -49011,7 +49011,7 @@ function run() {
             utils.setCacheState(cacheKey);
             const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
             utils.setCacheHitOutput(isExactKeyMatch);
-            if (!isExactKeyMatch && core.getInput(constants_1.Inputs.StrictRestore) == "true") {
+            if (!isExactKeyMatch && core.getInput(constants_1.Inputs.StrictRestore) == "yes") {
                 throw new Error(`Restored cache key doesn't match the given input key ${primaryKey}, hence exiting the workflow as the strict-restore requirement is not met.`);
             }
             core.info(`Cache restored from key: ${cacheKey}`);
diff --git a/src/restore.ts b/src/restore.ts
index fe71674..587d6c9 100644
--- a/src/restore.ts
+++ b/src/restore.ts
@@ -46,7 +46,7 @@ async function run(): Promise<void> {
         }
 
         if (!cacheKey) {
-            if (core.getInput(Inputs.StrictRestore) == "true") {
+            if (core.getInput(Inputs.StrictRestore) == "yes") {
                 throw new Error(
                     `Cache with the given input key ${primaryKey} is not found, hence exiting the workflow as the strict-restore requirement is not met.`
                 );
@@ -67,7 +67,7 @@ async function run(): Promise<void> {
         const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
         utils.setCacheHitOutput(isExactKeyMatch);
 
-        if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "true") {
+        if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "yes") {
             throw new Error(
                 `Restored cache key doesn't match the given input key ${primaryKey}, hence exiting the workflow as the strict-restore requirement is not met.`
             );