mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-06-06 03:17:06 +00:00
Update installer.ts
This commit is contained in:
parent
ddb9124064
commit
01bdbbf7b0
1 changed files with 6 additions and 0 deletions
|
|
@ -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 || {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue