mirror of
https://github.com/actions/setup-node.git
synced 2026-06-29 05:10:45 +00:00
Bump @actions/cache to 5.1.0, log cache write denied
This commit is contained in:
parent
f4a67bbeca
commit
4f8aac5beb
7 changed files with 557 additions and 469 deletions
|
|
@ -63,6 +63,10 @@ const cachePackages = async (packageManager: string) => {
|
|||
|
||||
const cacheId = await cache.saveCache(cachePaths, primaryKey);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue