Skip to content

Commit 579ee93

Browse files
authored
Merge pull request #179 from VirtusLab/update-scala-cli-setup
Update ScalaCLI
2 parents 2d79233 + 3eb28d3 commit 579ee93

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
description: 'Coursier version to install'
2121
required: false
2222
default: ''
23+
power:
24+
description: 'Value for the --power launcher option'
25+
required: false
26+
default: 'false'
2327
outputs:
2428
cs-version:
2529
description: 'Version of the installed Coursier'

src/main.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as tc from '@actions/tool-cache'
66

77
let csVersion = core.getInput('version')
88
if (!csVersion) csVersion = '2.1.0-M7-39-gb8f3d7532'
9-
const scalaCLIVersion = '0.1.20'
9+
const scalaCLIVersion = '0.2.0'
1010

1111
const coursierVersionSpec = csVersion
1212

@@ -124,6 +124,13 @@ async function run(): Promise<void> {
124124
)
125125
}
126126
})
127+
await core.group('Config --power', async () => {
128+
const powerInput = core.getInput('power').trim()
129+
const isPower = powerInput === 'true'
130+
if (isPower) {
131+
await execOutput('scala-cli', 'config', 'power', 'true')
132+
}
133+
})
127134
} catch (error: unknown) {
128135
const msg = error instanceof Error ? error.message : String(error)
129136
core.setFailed(msg)

0 commit comments

Comments
 (0)