Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno Borges
2026-07-09 21:10:44 -04:00
committed by GitHub
parent 66cc98638d
commit 49af9112b2

View File

@@ -322,11 +322,12 @@ async function saveAdditionalCache(
try {
const cacheId = await cache.saveCache(additionalCache.path, primaryKey);
if (cacheId === -1) {
core.debug(`Cache was not saved for the key: ${primaryKey}`);
core.debug(
`${additionalCache.name} cache was not saved for the key: ${primaryKey}`
);
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
} catch (error) {
core.info(`${additionalCache.name} cache saved with the key: ${primaryKey}`);
const err = error as Error;
if (err.name === cache.ReserveCacheError.name) {