mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 06:19:58 +08:00
Bump @actions/cache to 5.1.0, log cache write denied
This commit is contained in:
parent
c8813ba1bc
commit
fa8bde1a9c
6 changed files with 103 additions and 17 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue