refactor: use core.getBooleanInput()
This commit is contained in:
parent
cb04ff8cb3
commit
ba5e53c61d
|
@ -478,8 +478,7 @@ function run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (versions.length) {
|
if (versions.length) {
|
||||||
const includePrerelease = (core.getInput('include-prerelease') || 'false').toLowerCase() ===
|
const includePrerelease = core.getBooleanInput('include-prerelease');
|
||||||
'true';
|
|
||||||
let dotnetInstaller;
|
let dotnetInstaller;
|
||||||
for (const version of new Set(versions)) {
|
for (const version of new Set(versions)) {
|
||||||
dotnetInstaller = new installer.DotnetCoreInstaller(version, includePrerelease);
|
dotnetInstaller = new installer.DotnetCoreInstaller(version, includePrerelease);
|
||||||
|
|
|
@ -38,9 +38,9 @@ export async function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (versions.length) {
|
if (versions.length) {
|
||||||
const includePrerelease: boolean =
|
const includePrerelease: boolean = core.getBooleanInput(
|
||||||
(core.getInput('include-prerelease') || 'false').toLowerCase() ===
|
'include-prerelease'
|
||||||
'true';
|
);
|
||||||
let dotnetInstaller!: installer.DotnetCoreInstaller;
|
let dotnetInstaller!: installer.DotnetCoreInstaller;
|
||||||
for (const version of new Set<string>(versions)) {
|
for (const version of new Set<string>(versions)) {
|
||||||
dotnetInstaller = new installer.DotnetCoreInstaller(
|
dotnetInstaller = new installer.DotnetCoreInstaller(
|
||||||
|
|
Loading…
Reference in New Issue