mirror of
https://gitea.com/actions/setup-java.git
synced 2026-07-11 19:41:57 +08:00
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:
@@ -322,11 +322,12 @@ async function saveAdditionalCache(
|
|||||||
try {
|
try {
|
||||||
const cacheId = await cache.saveCache(additionalCache.path, primaryKey);
|
const cacheId = await cache.saveCache(additionalCache.path, primaryKey);
|
||||||
if (cacheId === -1) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
core.info(`Cache saved with the key: ${primaryKey}`);
|
core.info(`${additionalCache.name} cache saved with the key: ${primaryKey}`);
|
||||||
} catch (error) {
|
|
||||||
const err = error as Error;
|
const err = error as Error;
|
||||||
|
|
||||||
if (err.name === cache.ReserveCacheError.name) {
|
if (err.name === cache.ReserveCacheError.name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user