Bump @actions/cache to 5.1.0, log cache write denied

This commit is contained in:
Jason Ginchereau committed 2026-06-18 15:19:32 -07:00
1 parent c8813ba1bc
commit fa8bde1a9c
6 files changed
+103 -17

No files matched your search

+4
View File
@@ -71,6 +71,10 @@ async function saveCache(packageManager: string) {
}
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.
core.debug(`Cache was not saved for the key: ${primaryKey}`);
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);