Revert "Temporarily disable image cache usage for v1"

This commit is contained in:
Alena Sviridenko 2021-08-04 17:00:50 +03:00 committed by GitHub
parent eb416799cf
commit 108628bcbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 14 deletions

7
dist/index.js vendored
View file

@ -12231,8 +12231,7 @@ function getNode(versionSpec) {
let toolPath;
toolPath = tc.find('node', versionSpec);
// If not found in cache, download
// Usage of pre-cached Node.js is temporarily disabled.
if (true) {
if (!toolPath) {
let version;
const c = semver.clean(versionSpec) || '';
// If explicit version
@ -12249,8 +12248,7 @@ function getNode(versionSpec) {
// check cache
toolPath = tc.find('node', version);
}
// Usage of pre-cached Node.js is temporarily disabled.
if (true) {
if (!toolPath) {
// download, extract, cache
toolPath = yield acquireNode(version);
}
@ -12344,7 +12342,6 @@ function acquireNode(version) {
let downloadUrl = `https://nodejs.org/dist/v${version}/${urlFileName}`;
let downloadPath;
try {
core.info(`Downloading ${downloadUrl}`);
downloadPath = yield tc.downloadTool(downloadUrl);
}
catch (err) {