1
0
mirror of https://github.com/actions/setup-dotnet.git synced 2026-02-19 07:51:18 +01:00

Merge pull request #110 from GGG-KILLER/feature/include-prerelease

Include include-prerelease option to be able to match latest prerelease versions
This commit is contained in:
Maxim Lobanov
2021-05-05 15:53:38 +03:00
committed by GitHub
4 changed files with 44 additions and 17 deletions

View File

@@ -30,7 +30,14 @@ export async function run() {
}
if (version) {
const dotnetInstaller = new installer.DotnetCoreInstaller(version);
const includePrerelease: boolean =
(core.getInput('include-prerelease') || 'false').toLowerCase() ===
'true';
const dotnetInstaller = new installer.DotnetCoreInstaller(
version,
includePrerelease
);
await dotnetInstaller.installDotnet();
}