mirror of
https://code.forgejo.org/actions/setup-node
synced 2025-03-14 22:26:59 +01:00
suppress warnings
This commit is contained in:
parent
87063ef0ad
commit
d8619e6d5a
2 changed files with 0 additions and 10 deletions
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
|
@ -100516,10 +100516,6 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||
try {
|
||||
core.info(`Attempting to download using mirror URL...`);
|
||||
downloadPath = yield this.downloadFromMirrorURL(); // Attempt to download from the mirror
|
||||
core.info('downloadPath from downloadFromMirrorURL() ' + downloadPath);
|
||||
if (downloadPath) {
|
||||
const toolPath = downloadPath;
|
||||
}
|
||||
}
|
||||
catch (err) {
|
||||
core.setFailed(err.message);
|
||||
|
@ -100528,7 +100524,6 @@ class OfficialBuilds extends base_distribution_1.default {
|
|||
}
|
||||
}
|
||||
else {
|
||||
core.info('No mirror URL found. Falling back to default setup...');
|
||||
core.info('Setup Node.js');
|
||||
let manifest;
|
||||
let nodeJsVersions;
|
||||
|
|
|
@ -21,17 +21,12 @@ export default class OfficialBuilds extends BaseDistribution {
|
|||
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) {
|
||||
const toolPath = downloadPath;
|
||||
}
|
||||
} catch (err) {
|
||||
core.setFailed((err as Error).message);
|
||||
core.setFailed('Download failed');
|
||||
core.debug((err as Error).stack ?? 'empty stack');
|
||||
}
|
||||
} else {
|
||||
core.info('No mirror URL found. Falling back to default setup...');
|
||||
core.info('Setup Node.js');
|
||||
let manifest: tc.IToolRelease[] | undefined;
|
||||
let nodeJsVersions: INodeVersion[] | undefined;
|
||||
|
|
Loading…
Add table
Reference in a new issue