mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 14:13:49 +00:00
check failures fix
This commit is contained in:
parent
1b0ef2d227
commit
07b84a2324
6 changed files with 4 additions and 8 deletions
|
@ -1,6 +1,5 @@
|
|||
import BasePrereleaseNodejs from '../base-distribution-prerelease';
|
||||
import {NodeInputs} from '../base-models';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
export default class NightlyNodejs extends BasePrereleaseNodejs {
|
||||
protected distribution = 'nightly';
|
||||
|
|
|
@ -22,13 +22,13 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
);
|
||||
}
|
||||
let downloadPath = '';
|
||||
let toolPath = '';
|
||||
|
||||
try {
|
||||
core.info(`Attempting to download using mirror URL...`);
|
||||
downloadPath = await this.downloadFromMirrorURL(); // Attempt to download from the mirror
|
||||
core.info('downloadPath from downloadFromMirrorURL() ' + downloadPath);
|
||||
if (downloadPath) {
|
||||
toolPath = downloadPath;
|
||||
const toolPath = downloadPath;
|
||||
}
|
||||
} catch (err) {
|
||||
core.info((err as Error).message);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import BaseDistribution from '../base-distribution';
|
||||
import {NodeInputs} from '../base-models';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
export default class RcBuild extends BaseDistribution {
|
||||
getDistributionMirrorUrl() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue