diff --git a/README.md b/README.md index 73f3781d4..593337cd6 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,15 @@ This action sets up a go environment for use in actions by: - Optionally downloading and caching a version of Go by version and adding to `PATH`. - Registering problem matchers for error output. +# V4 + +The V4 edition of the action offers: + + - Enables caching by default + - Does not fail if caching fails for any reason + +The action will try to enable caching unless the `cache` input explicitly set to false. + # V3 The V3 edition of the action offers: diff --git a/dist/setup/index.js b/dist/setup/index.js index efa85e9a9..72e2e2e37 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -63619,8 +63619,8 @@ function run() { try { yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath); } - catch (e) { - core.warning(`Restore cache failed: ${e.message}`); + catch (error) { + core.warning(`Restore cache failed: ${error.message}`); } } // add problem matchers diff --git a/src/main.ts b/src/main.ts index ddd3e7cdc..a102c1ebe 100644 --- a/src/main.ts +++ b/src/main.ts @@ -68,8 +68,8 @@ export async function run() { packageManager, cacheDependencyPath ); - } catch (e) { - core.warning(`Restore cache failed: ${e.message}`); + } catch (error) { + core.warning(`Restore cache failed: ${error.message}`); } }