1
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-07-15 09:20:46 +00:00

Changed input value

This commit is contained in:
Sankalp Kotewar 2022-11-22 07:22:26 +00:00 committed by GitHub
parent c451e92c29
commit 78b088d460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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.`
);