Skip to content

Commit dbbe0ba

Browse files
author
Maxim Lobanov
committed
fix readme and warning
1 parent 1405bc8 commit dbbe0ba

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ steps:
4141
- run: npm test
4242
```
4343

44-
Checking latest version of Node.js:
45-
(By default, action searches version locally before downloading it. The flag forces action to check if cached version is not outdated)
44+
Check latest version:
45+
> 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.
46+
`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.
4647
```yaml
4748
steps:
4849
- uses: actions/checkout@v2

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13153,7 +13153,7 @@ function resolveVersionFromManifest(versionSpec, stable, auth) {
1315313153
return info === null || info === void 0 ? void 0 : info.resolvedVersion;
1315413154
}
1315513155
catch (err) {
13156-
core.warning('Unable to resolve version from manifest...');
13156+
core.info('Unable to resolve version from manifest...');
1315713157
core.debug(err.message);
1315813158
}
1315913159
});

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ async function resolveVersionFromManifest(
219219
const info = await getInfoFromManifest(versionSpec, stable, auth);
220220
return info?.resolvedVersion;
221221
} catch (err) {
222-
core.warning('Unable to resolve version from manifest...');
222+
core.info('Unable to resolve version from manifest...');
223223
core.debug(err.message);
224224
}
225225
}

0 commit comments

Comments
 (0)