mirror of
https://github.com/actions/setup-go.git
synced 2025-04-24 01:50:52 +00:00
Do not abort build on save cache error
This commit is contained in:
parent
e1350d01c5
commit
c09fdc8076
3 changed files with 7 additions and 7 deletions
2
dist/cache-save/index.js
vendored
2
dist/cache-save/index.js
vendored
|
@ -60356,7 +60356,7 @@ function run() {
|
|||
if (typeof error === 'string') {
|
||||
message = error;
|
||||
}
|
||||
core.setFailed(message);
|
||||
core.warning(message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ export async function run() {
|
|||
if (typeof error === 'string') {
|
||||
message = error;
|
||||
}
|
||||
core.setFailed(message);
|
||||
core.warning(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
10
src/main.ts
10
src/main.ts
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue