Bump @actions/cache to v6.1.0 - handle cache write error due to RO token

This commit is contained in:
Jason Ginchereau
2026-06-18 12:26:16 -07:00
parent 2c8a9bd745
commit d8cd72f230
23 changed files with 26962 additions and 3315 deletions
+5 -1
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);