Revert "Temporarily disabled cache usage for v2"

This commit is contained in:
Alena Sviridenko 2021-08-04 17:00:35 +03:00 committed by GitHub
parent d6e3b5539e
commit d21ecc7c5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 20 deletions

5
dist/setup/index.js vendored
View file

@ -65086,8 +65086,9 @@ function getNode(versionSpec, stable, checkLatest, auth, arch = os.arch()) {
let toolPath;
toolPath = tc.find('node', versionSpec, osArch);
// If not found in cache, download
// Usage of pre-cached Node.js versions is temporarily disabled.
if (false) {}
if (toolPath) {
core.info(`Found in cache @ ${toolPath}`);
}
else {
core.info(`Attempting to download ${versionSpec}...`);
let downloadPath = '';