From dbbe0bac60a52240e9dfac3aa67f89b0c6c3b61b Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Mon, 29 Jun 2020 20:46:14 +0300 Subject: [PATCH] fix readme and warning --- README.md | 5 +++-- dist/index.js | 2 +- src/installer.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 182d3b31d..744c492f5 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 4d0984b10..93c2d649e 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 63ef39007..d9c3f9e6b 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); } }