mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-01-18 22:31:44 +07:00
Remove CDN fallback logic (v2)
This commit is contained in:
parent
aab9aab748
commit
9798ae12d7
2604
dist/index.js
vendored
2604
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -262,12 +262,8 @@ export class DotnetCoreInstaller {
|
||||
httpClient: hc.HttpClient,
|
||||
versionParts: string[]
|
||||
): Promise<string> {
|
||||
let response;
|
||||
try {
|
||||
response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
|
||||
} catch (error) {
|
||||
response = await httpClient.getJson<any>(DotnetCoreIndexFallbackUrl);
|
||||
}
|
||||
const response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
|
||||
|
||||
const result = response.result || {};
|
||||
let releasesInfo: any[] = result['releases-index'];
|
||||
|
||||
@ -307,6 +303,3 @@ export class DotnetCoreInstaller {
|
||||
|
||||
const DotNetCoreIndexUrl: string =
|
||||
'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
|
||||
|
||||
const DotnetCoreIndexFallbackUrl: string =
|
||||
'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json';
|
||||
|
Loading…
Reference in New Issue
Block a user