Skip to content

Commit e0c918c

Browse files
committed
Build
1 parent 44ac246 commit e0c918c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dist/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21890,6 +21890,12 @@ async function main() {
2189021890
for (const f of files) {
2189121891
let path = f.join("/");
2189221892
let currentParentPageId = rootParentPageId;
21893+
let pathsInRoot = root.split("/");
21894+
let newRoot= root;
21895+
if(pathsInRoot.length > 1){
21896+
newRoot = pathsInRoot[0] + "/"
21897+
console.log("Root for action includes subfolder. Assigning root as: " + newRoot)
21898+
}
2189321899
for (const subPath of f) {
2189421900
if (subPath.includes(".md")) {
2189521901
let pageTitle = subPath.replace(".md", "");

0 commit comments

Comments
 (0)