mirror of
https://github.com/actions/setup-node.git
synced 2025-12-15 17:31:39 +08:00
This commit is contained in:
@@ -105,9 +105,12 @@ export default abstract class BaseDistribution {
|
||||
return response.result || [];
|
||||
}
|
||||
|
||||
protected async getMirrorUrVersions(): Promise<INodeVersion[]> {
|
||||
protected async getMirrorUrlVersions(): Promise<INodeVersion[]> {
|
||||
const initialUrl = this.getDistributionMirrorUrl();
|
||||
core.info('initialUrl from getDistributionMirrorUrl '+initialUrl);
|
||||
|
||||
const dataUrl = `${initialUrl}/index.json`;
|
||||
core.info('dataUrl from index '+dataUrl);
|
||||
|
||||
const response = await this.httpClient.getJson<INodeVersion[]>(dataUrl);
|
||||
return response.result || [];
|
||||
|
||||
@@ -317,7 +317,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
||||
}
|
||||
|
||||
protected async downloadFromMirrorURL() {
|
||||
const nodeJsVersions = await this.getMirrorUrVersions();
|
||||
const nodeJsVersions = await this.getMirrorUrlVersions();
|
||||
core.info('nodeJsVersions from getMirrorUrVersions '+nodeJsVersions);
|
||||
const versions = this.filterVersions(nodeJsVersions);
|
||||
core.info('versions from filterVersions '+versions);
|
||||
|
||||
Reference in New Issue
Block a user