Skip to content

Commit

Permalink
fix readme and warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Lobanov committed Jun 29, 2020
1 parent 1405bc8 commit dbbe0ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ steps:
- run: npm test
```

Checking latest version of Node.js:
(By default, action searches version locally before downloading it. The flag forces action to check if cached version is not outdated)
Check latest version:
> In basic example, without `check-latest` flag, the action tries to resolve version from local cache firstly and download only if it is not found. Local cache on image is updated with a couple of weeks latency.
`check-latest` flag forces the action to check if the cached version is the latest one. It reduces latency significantly but it is much more likely to incur version downloading.
```yaml
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13153,7 +13153,7 @@ function resolveVersionFromManifest(versionSpec, stable, auth) {
return info === null || info === void 0 ? void 0 : info.resolvedVersion;
}
catch (err) {
core.warning('Unable to resolve version from manifest...');
core.info('Unable to resolve version from manifest...');
core.debug(err.message);
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async function resolveVersionFromManifest(
const info = await getInfoFromManifest(versionSpec, stable, auth);

This comment has been minimized.

Copy link
@usandourkids525

usandourkids525 Jul 6, 2020

core info = watch

return info?.resolvedVersion;
} catch (err) {
core.warning('Unable to resolve version from manifest...');
core.info('Unable to resolve version from manifest...');

This comment has been minimized.

Copy link
@usandourkids525

usandourkids525 Jul 6, 2020

Info

core.debug(err.message);
}
}
Expand Down

0 comments on commit dbbe0ba

Please sign in to comment.