Update installer.ts

This commit is contained in:
Priya Gupta 2024-12-26 14:00:21 +05:30 committed by GitHub
parent ddb9124064
commit 01bdbbf7b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,8 +264,14 @@ export class DotnetCoreInstaller {
): Promise<string> {
let response;
try {
core.info(
`${DotNetCoreIndexUrl} DotNetCoreIndexUrl`
);
response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
} catch (error) {
core.info(
`${DotnetCoreIndexFallbackUrl} DotnetCoreIndexFallbackUrl`
);
response = await httpClient.getJson<any>(DotnetCoreIndexFallbackUrl);
}
const result = response.result || {};