From 6f4b74bfa2f520a380a620de3615c0dac427f4d3 Mon Sep 17 00:00:00 2001 From: Jason Ginchereau Date: Thu, 18 Jun 2026 15:46:13 -0700 Subject: [PATCH] Strict equality --- src/cache-save.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache-save.ts b/src/cache-save.ts index 4dfe4165..e0dc6162 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -70,7 +70,7 @@ async function saveCache(packageManager: string) { return; } - if (cacheId == -1) { + if (cacheId === -1) { // saveCache returns -1 without throwing when the cache was not saved, e.g. // a reserve collision or a read-only token (fork PR). @actions/cache has // already logged the reason at the appropriate severity, so just trace it.