Merge pull request #1324 from jasongin/update-actions-cache-5.1.0

Bump @actions/cache to 5.1.0, log cache write denied
This commit is contained in:
Bassem Dghaidi
2026-06-23 11:21:36 +02:00
committed by GitHub
14 changed files with 285 additions and 45 deletions
+5 -1
View File
@@ -70,7 +70,11 @@ 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.
core.debug(`Cache was not saved for the key: ${primaryKey}`);
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);