Skip to content

Commit 9cfe9ce

Browse files
committed
Fix base-dir input
1 parent 37ce6bb commit 9cfe9ce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/main.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ async function run(): Promise<void> {
2323
const projectDir = path.join(baseDir, 'project')
2424
const uuid = crypto.randomUUID()
2525
const pluginVersionInput = core.getInput('sbt-plugin-version')
26-
const pluginVersion = pluginVersionInput.length === 0 ? defaultPluginVersion : pluginVersionInput
26+
const pluginVersion =
27+
pluginVersionInput.length === 0 ? defaultPluginVersion : pluginVersionInput
2728
const pluginFile = path.join(projectDir, `github-dependency-graph-${uuid}.sbt`)
2829
const pluginDep = `addSbtPlugin("ch.epfl.scala" % "sbt-github-dependency-graph" % "${pluginVersion}")`
2930
if (!fs.existsSync(projectDir)) {
@@ -48,7 +49,9 @@ async function run(): Promise<void> {
4849
.filter(value => value.length > 0),
4950
}
5051

51-
await cli.exec('sbt', [`githubSubmitDependencyGraph ${JSON.stringify(input)}`])
52+
await cli.exec('sbt', [`githubSubmitDependencyGraph ${JSON.stringify(input)}`], {
53+
cwd: baseDir,
54+
})
5255
} catch (error) {
5356
if (error instanceof Error) {
5457
core.setFailed(error)

0 commit comments

Comments
 (0)