Fix changes requests

This commit is contained in:
Sergey Dolin 2023-02-24 10:37:00 +01:00
parent 99b2e737de
commit fa1068afe0
3 changed files with 13 additions and 4 deletions

View file

@ -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`. - Optionally downloading and caching a version of Go by version and adding to `PATH`.
- Registering problem matchers for error output. - 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 # V3
The V3 edition of the action offers: The V3 edition of the action offers:

4
dist/setup/index.js vendored
View file

@ -63617,8 +63617,8 @@ function run() {
try { try {
yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath); yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath);
} }
catch (e) { catch (error) {
core.warning(`Restore cache failed: ${e.message}`); core.warning(`Restore cache failed: ${error.message}`);
} }
} }
// add problem matchers // add problem matchers

View file

@ -68,8 +68,8 @@ export async function run() {
packageManager, packageManager,
cacheDependencyPath cacheDependencyPath
); );
} catch (e) { } catch (error) {
core.warning(`Restore cache failed: ${e.message}`); core.warning(`Restore cache failed: ${error.message}`);
} }
} }