diff --git a/README.md b/README.md index 182d3b31..744c492f 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/dist/index.js b/dist/index.js index 4d0984b1..93c2d649 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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); } }); diff --git a/src/installer.ts b/src/installer.ts index 63ef3900..d9c3f9e6 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -219,7 +219,7 @@ async function resolveVersionFromManifest( const info = await getInfoFromManifest(versionSpec, stable, auth); return info?.resolvedVersion; } catch (err) { - core.warning('Unable to resolve version from manifest...'); + core.info('Unable to resolve version from manifest...'); core.debug(err.message); } }