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:
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'
2327outputs :
2428 cs-version :
2529 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'
66
77let csVersion = core . getInput ( 'version' )
88if ( ! csVersion ) csVersion = '2.1.0-M7-39-gb8f3d7532'
9- const scalaCLIVersion = '0.1.20 '
9+ const scalaCLIVersion = '0.2.0 '
1010
1111const 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 )
You can’t perform that action at this time.
0 commit comments