mirror of
https://github.com/actions/setup-python.git
synced 2026-07-18 06:19:58 +08:00
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:
commit
8f639b1e75
14 changed files with 285 additions and 45 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue