refactor: use core.getBooleanInput()

This commit is contained in:
Nogic committed 2022-07-31 23:27:05 +00:00
1 parent cb04ff8cb3
commit ba5e53c61d
2 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -478,8 +478,7 @@ function run() {
}
}
if (versions.length) {
const includePrerelease = (core.getInput('include-prerelease') || 'false').toLowerCase() ===
'true';
const includePrerelease = core.getBooleanInput('include-prerelease');
let dotnetInstaller;
for (const version of new Set(versions)) {
dotnetInstaller = new installer.DotnetCoreInstaller(version, includePrerelease);