Skip to content

Commit

Permalink
Do not abort build on save cache error
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Feb 14, 2023
1 parent 1567e61 commit e9a61fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/cache-save/index.js
Expand Up @@ -60356,7 +60356,7 @@ function run() {
if (typeof error === 'string') {
message = error;
}
core.setFailed(message);
core.warning(message);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/cache-save.ts
Expand Up @@ -23,7 +23,7 @@ export async function run() {
if (typeof error === 'string') {
message = error;
}
core.setFailed(message);
core.warning(message);
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/main.ts
Expand Up @@ -62,14 +62,14 @@ export async function run() {
if (cache && isCacheFeatureAvailable()) {
const packageManager = 'default';
const cacheDependencyPath = core.getInput('cache-dependency-path');
try {
try {
await restoreCache(
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
);
} catch (e) {
core.warning(`Restore cache failed: ${e.message}`)
core.warning(`Restore cache failed: ${e.message}`);
}
}

Expand Down

0 comments on commit e9a61fc

Please sign in to comment.