mirror of
https://gitea.com/actions/setup-java.git
synced 2026-12-02 19:19:06 +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:
1 parent
66cc98638d
commit
49af9112b2
1 file changed
+4
-3
+4
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user