Skip to content

Commit

Permalink
Fix changes requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsame committed Feb 24, 2023
1 parent 9348eb4 commit 242e24b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions dist/setup/index.js
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Expand Up @@ -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}`);
}
}

Expand Down

0 comments on commit 242e24b

Please sign in to comment.