mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +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') {
|
if (typeof error === 'string') {
|
||||||
message = error;
|
message = error;
|
||||||
}
|
}
|
||||||
core.setFailed(message);
|
core.warning(message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ export async function run() {
|
||||||
if (typeof error === 'string') {
|
if (typeof error === 'string') {
|
||||||
message = error;
|
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()) {
|
if (cache && isCacheFeatureAvailable()) {
|
||||||
const packageManager = 'default';
|
const packageManager = 'default';
|
||||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||||
try {
|
try {
|
||||||
await restoreCache(
|
await restoreCache(
|
||||||
parseGoVersion(goVersion),
|
parseGoVersion(goVersion),
|
||||||
packageManager,
|
packageManager,
|
||||||
cacheDependencyPath
|
cacheDependencyPath
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
core.warning(`Restore cache failed: ${e.message}`)
|
core.warning(`Restore cache failed: ${e.message}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue