Bump @actions/cache to v5.1.0 - handle read-only cache access

This commit is contained in:
Jason Ginchereau
2026-06-26 12:05:30 -07:00
committed by GitHub
parent 27d5ce7f10
commit 00c2da95da
11 changed files with 224 additions and 37 deletions

View File

@@ -84,7 +84,11 @@ export async function saveOnlyRun(
try {
const cacheId = await saveImpl(new NullStateProvider());
if (cacheId === -1) {
core.warning(`Cache save failed.`);
// The toolkit's saveCache already logs the underlying reason at
// the appropriate severity (warning for most failures, info for
// benign concurrency races, error for 5xx). Avoid emitting a
// generic warning here that would duplicate or mask that signal.
core.debug(`Cache was not saved.`);
}
} catch (err) {
console.error(err);