diff --git a/dist/restore/index.js b/dist/restore/index.js index 7ee1ddf..efbe581 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -151483,7 +151483,9 @@ async function run() { lookupOnly, }); if (restoreKey) { - const match = restoreKey === key; + const match = restoreKey.localeCompare(key, undefined, { + sensitivity: "accent" + }) === 0; lib_core.info(`${lookupOnly ? "Found" : "Restored from"} cache key "${restoreKey}" full match: ${match}.`); if (!match) { // pre-clean the target directory on cache mismatch diff --git a/src/restore.ts b/src/restore.ts index 21af56f..2e680bc 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -42,7 +42,9 @@ async function run() { lookupOnly, }); if (restoreKey) { - const match = restoreKey === key; + const match = restoreKey.localeCompare(key, undefined, { + sensitivity: "accent" + }) === 0; core.info(`${lookupOnly ? "Found" : "Restored from"} cache key "${restoreKey}" full match: ${match}.`); if (!match) { // pre-clean the target directory on cache mismatch