Skip to content

Commit 78a94fd

Browse files
Ashish Padakannayatgodzik
authored andcommitted
getBooleanInput
1 parent be4c145 commit 78a94fd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,10 @@ async function downloadCoursier(): Promise<string> {
5151
let csBinary = ''
5252
switch (process.platform) {
5353
case 'linux': {
54-
const useContainerImageInput = core.getInput('useContainerImage')
55-
const linuxUrl =
56-
useContainerImageInput.toLowerCase() === 'true'
57-
? `${baseUrl}-pc-linux-container.gz`
58-
: `${baseUrl}-pc-linux.gz`
54+
const useContainerImageInput = core.getBooleanInput('useContainerImage')
55+
const linuxUrl = useContainerImageInput
56+
? `${baseUrl}-pc-linux-container.gz`
57+
: `${baseUrl}-pc-linux.gz`
5958
const guid = await tc.downloadTool(linuxUrl)
6059
const archive = `${guid}.gz`
6160
await cli.exec('mv', [guid, archive])

0 commit comments

Comments
 (0)