Skip to content

Commit d1f992d

Browse files
committed
Also change source file
1 parent 26db00c commit d1f992d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ const main = async () => {
2222
core.endGroup()
2323

2424

25+
const rootPath = core.getInput("root_path") || "./";
2526
const maxDepth = core.getInput("max_depth") || 9
2627
const colorEncoding = core.getInput("color_encoding") || "type"
2728
const commitMessage = core.getInput("commit_message") || "Repo visualizer: updated diagram"
2829
const excludedPathsString = core.getInput("excluded_paths") || "node_modules,bower_components,dist,out,build,eject,.next,.netlify,.yarn,.git,.vscode,package-lock.json,yarn.lock"
2930
const excludedPaths = excludedPathsString.split(",").map(str => str.trim())
3031
const branch = core.getInput("branch")
31-
const data = await processDir(`./`, excludedPaths);
32+
const data = await processDir(rootPath, excludedPaths);
3233

3334
const componentCodeString = ReactDOMServer.renderToStaticMarkup(
3435
<Tree data={data} maxDepth={+maxDepth} colorEncoding={colorEncoding} />

0 commit comments

Comments
 (0)