File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ inputs:
20
20
description : ' Coursier version to install'
21
21
required : false
22
22
default : ' '
23
+ power :
24
+ description : ' Value for the --power launcher option'
25
+ required : false
26
+ default : ' false'
23
27
outputs :
24
28
cs-version :
25
29
description : ' Version of the installed Coursier'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import * as tc from '@actions/tool-cache'
6
6
7
7
let csVersion = core . getInput ( 'version' )
8
8
if ( ! csVersion ) csVersion = '2.1.0-M7-39-gb8f3d7532'
9
- const scalaCLIVersion = '0.1.20 '
9
+ const scalaCLIVersion = '0.2.0 '
10
10
11
11
const coursierVersionSpec = csVersion
12
12
@@ -124,6 +124,13 @@ async function run(): Promise<void> {
124
124
)
125
125
}
126
126
} )
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
+ } )
127
134
} catch ( error : unknown ) {
128
135
const msg = error instanceof Error ? error . message : String ( error )
129
136
core . setFailed ( msg )
You can’t perform that action at this time.
0 commit comments