mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 11:31:07 +07:00
refactor: use core.getBooleanInput()
This commit is contained in:
parent
cb04ff8cb3
commit
ba5e53c61d
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -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);
|
||||
|
@ -38,9 +38,9 @@ export async function run() {
|
||||
}
|
||||
|
||||
if (versions.length) {
|
||||
const includePrerelease: boolean =
|
||||
(core.getInput('include-prerelease') || 'false').toLowerCase() ===
|
||||
'true';
|
||||
const includePrerelease: boolean = core.getBooleanInput(
|
||||
'include-prerelease'
|
||||
);
|
||||
let dotnetInstaller!: installer.DotnetCoreInstaller;
|
||||
for (const version of new Set<string>(versions)) {
|
||||
dotnetInstaller = new installer.DotnetCoreInstaller(
|
||||
|
Loading…
Reference in New Issue
Block a user