Implement passing includePrerelase to semver

This commit is contained in:
GGG KILLER
2020-07-16 19:23:46 -03:00
parent ba7e1e2155
commit 768b4eb7db
3 changed files with 41 additions and 17 deletions

View File

@ -29,7 +29,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();
}