File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ async function run(): Promise<void> {
23
23
const projectDir = path . join ( baseDir , 'project' )
24
24
const uuid = crypto . randomUUID ( )
25
25
const pluginVersionInput = core . getInput ( 'sbt-plugin-version' )
26
- const pluginVersion = pluginVersionInput . length === 0 ? defaultPluginVersion : pluginVersionInput
26
+ const pluginVersion =
27
+ pluginVersionInput . length === 0 ? defaultPluginVersion : pluginVersionInput
27
28
const pluginFile = path . join ( projectDir , `github-dependency-graph-${ uuid } .sbt` )
28
29
const pluginDep = `addSbtPlugin("ch.epfl.scala" % "sbt-github-dependency-graph" % "${ pluginVersion } ")`
29
30
if ( ! fs . existsSync ( projectDir ) ) {
@@ -48,7 +49,9 @@ async function run(): Promise<void> {
48
49
. filter ( value => value . length > 0 ) ,
49
50
}
50
51
51
- await cli . exec ( 'sbt' , [ `githubSubmitDependencyGraph ${ JSON . stringify ( input ) } ` ] )
52
+ await cli . exec ( 'sbt' , [ `githubSubmitDependencyGraph ${ JSON . stringify ( input ) } ` ] , {
53
+ cwd : baseDir ,
54
+ } )
52
55
} catch ( error ) {
53
56
if ( error instanceof Error ) {
54
57
core . setFailed ( error )
You can’t perform that action at this time.
0 commit comments