You've already forked setup-dotnet
mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-09-07 05:14:05 +07:00
V2 - Use new .NET CDN URLs and update to latest install scripts (#568)
* new cdn url changes * Fix Workflow * Fix CI failures for ubuntu-latest * Fix upload-artifact@v4 * Fix proxy test issue * Fix Proxy env issue * Fix globalization invariant issue * Fix libssl issue * Install libssl1.1 to fix CI failures * Add fallback logic * Fix CI failures dist * Update installer.ts * Update installer.ts * Fix proxy test failure * Update signed version --------- Co-authored-by: Priya Gupta <147705955+priyagupta108@users.noreply.github.com>
This commit is contained in:
@ -262,7 +262,12 @@ export class DotnetCoreInstaller {
|
||||
httpClient: hc.HttpClient,
|
||||
versionParts: string[]
|
||||
): Promise<string> {
|
||||
const response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
|
||||
let response;
|
||||
try {
|
||||
response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
|
||||
} catch (error) {
|
||||
response = await httpClient.getJson<any>(DotnetCoreIndexFallbackUrl);
|
||||
}
|
||||
const result = response.result || {};
|
||||
let releasesInfo: any[] = result['releases-index'];
|
||||
|
||||
@ -301,4 +306,7 @@ 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';
|
||||
|
Reference in New Issue
Block a user