mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-23 03:51:07 +07:00
Fix fallback urls (#6)
This commit is contained in:
parent
035f3d68f7
commit
32271541ae
@ -250,8 +250,8 @@ class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
primaryUrlSearchString = 'dotnet-install: Primary - ';
|
primaryUrlSearchString = 'dotnet-install: Primary named payload URL: ';
|
||||||
legacyUrlSearchString = 'dotnet-install: Legacy - ';
|
legacyUrlSearchString = 'dotnet-install: Legacy named payload URL: ';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let escapedScript = path
|
let escapedScript = path
|
||||||
@ -266,8 +266,8 @@ class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
primaryUrlSearchString = 'dotnet-install: Payload URL: ';
|
primaryUrlSearchString = 'dotnet-install: Primary named payload URL: ';
|
||||||
legacyUrlSearchString = 'dotnet-install: Legacy payload URL: ';
|
legacyUrlSearchString = 'dotnet-install: Legacy named payload URL: ';
|
||||||
}
|
}
|
||||||
if (resultCode != 0) {
|
if (resultCode != 0) {
|
||||||
throw `Failed to get download urls with result code ${resultCode}. ${output}`;
|
throw `Failed to get download urls with result code ${resultCode}. ${output}`;
|
||||||
|
@ -274,8 +274,8 @@ export class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
primaryUrlSearchString = 'dotnet-install: Primary - ';
|
primaryUrlSearchString = 'dotnet-install: Primary named payload URL: ';
|
||||||
legacyUrlSearchString = 'dotnet-install: Legacy - ';
|
legacyUrlSearchString = 'dotnet-install: Legacy named payload URL: ';
|
||||||
} else {
|
} else {
|
||||||
let escapedScript = path
|
let escapedScript = path
|
||||||
.join(__dirname, '..', 'externals', 'install-dotnet.sh')
|
.join(__dirname, '..', 'externals', 'install-dotnet.sh')
|
||||||
@ -295,8 +295,8 @@ export class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
primaryUrlSearchString = 'dotnet-install: Payload URL: ';
|
primaryUrlSearchString = 'dotnet-install: Primary named payload URL: ';
|
||||||
legacyUrlSearchString = 'dotnet-install: Legacy payload URL: ';
|
legacyUrlSearchString = 'dotnet-install: Legacy named payload URL: ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resultCode != 0) {
|
if (resultCode != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user