1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-12 21:34:14 +02:00

Enable caching by default with default input (#332)

This commit is contained in:
Sergey Dolin 2023-03-10 16:25:35 +01:00 committed by GitHub
parent 6b848af622
commit c51a720768
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 167 additions and 6269 deletions

View file

@ -62,11 +62,15 @@ export async function run() {
if (cache && isCacheFeatureAvailable()) {
const packageManager = 'default';
const cacheDependencyPath = core.getInput('cache-dependency-path');
await restoreCache(
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
);
try {
await restoreCache(
parseGoVersion(goVersion),
packageManager,
cacheDependencyPath
);
} catch (error) {
core.warning(`Restore cache failed: ${error.message}`);
}
}
// add problem matchers