mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-01-18 14:21:44 +07:00
Update installer.ts
This commit is contained in:
parent
01bdbbf7b0
commit
6ef01d5b7e
@ -264,14 +264,8 @@ 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 || {};
|
||||
|
Loading…
Reference in New Issue
Block a user