mirror of
https://github.com/actions/setup-node.git
synced 2026-02-23 07:04:42 +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 || [];
|
||||
|
||||
Reference in New Issue
Block a user