mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-04-06 07:19:55 +00:00
V3 - Use new .NET CDN URLs and update to latest install scripts (#567)
* Update new cdn * new cdn changes * update latest install scripts * Format install scripts * Fix Ubuntu-latest issues * Fallback logic * Format check * Update signed version
This commit is contained in:
11
dist/setup/index.js
vendored
11
dist/setup/index.js
vendored
@ -71264,7 +71264,13 @@ class DotnetVersionResolver {
|
||||
allowRetries: true,
|
||||
maxRetries: 3
|
||||
});
|
||||
const response = yield httpClient.getJson(DotnetVersionResolver.DotNetCoreIndexUrl);
|
||||
let response;
|
||||
try {
|
||||
response = yield httpClient.getJson(DotnetVersionResolver.DotNetCoreIndexUrl);
|
||||
}
|
||||
catch (error) {
|
||||
response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexFallbackUrl);
|
||||
}
|
||||
const result = response.result || {};
|
||||
const releasesInfo = result['releases-index'];
|
||||
const releaseInfo = releasesInfo.find(info => {
|
||||
@ -71279,7 +71285,8 @@ class DotnetVersionResolver {
|
||||
}
|
||||
}
|
||||
exports.DotnetVersionResolver = DotnetVersionResolver;
|
||||
DotnetVersionResolver.DotNetCoreIndexUrl = 'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json';
|
||||
DotnetVersionResolver.DotNetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json';
|
||||
DotnetVersionResolver.DotnetCoreIndexFallbackUrl = 'https://dotnetcli.azureedge.net/dotnet/release-metadata/releases-index.json';
|
||||
class DotnetCoreInstaller {
|
||||
constructor(version, quality) {
|
||||
this.version = version;
|
||||
|
Reference in New Issue
Block a user