File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 3131 - run : echo 'name := "foo"' > build.sbt
3232 - id : scala-cli-setup
3333 uses : ./
34+ env :
35+ COURSIER_BIN_DIR : ${{ github.workspace }}/cs/bin
3436 with :
3537 jvm : ${{ matrix.jvm }}
3638 apps : sbt sbtn ammonite bloop:1.4.11
Original file line number Diff line number Diff line change @@ -139,9 +139,15 @@ async function run(): Promise<void> {
139139 }
140140 apps . push ( `scala-cli${ version ? `:${ version } ` : '' } ` )
141141 if ( value && apps . length ) {
142- const coursierBinDir = path . join ( os . homedir ( ) , 'cs' , 'bin' )
143- core . exportVariable ( 'COURSIER_BIN_DIR' , coursierBinDir )
144- core . addPath ( coursierBinDir )
142+ if ( process . env . COURSIER_BIN_DIR ) {
143+ core . addPath ( process . env . COURSIER_BIN_DIR )
144+ } else {
145+ const coursierBinDir = path . join ( os . homedir ( ) , 'cs' , 'bin' )
146+ core . exportVariable ( 'COURSIER_BIN_DIR' , coursierBinDir )
147+ core . addPath ( coursierBinDir )
148+ }
149+ // eslint-disable-next-line no-console
150+ console . log ( 'COURSIER_BIN_DIR' , process . env . COURSIER_BIN_DIR )
145151 await cs ( 'install' , '--contrib' , ...apps )
146152 core . setOutput (
147153 'scala-cli-version' ,
You can’t perform that action at this time.
0 commit comments