We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44ac246 commit e0c918cCopy full SHA for e0c918c
dist/index.js
@@ -21890,6 +21890,12 @@ async function main() {
21890
for (const f of files) {
21891
let path = f.join("/");
21892
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
+ }
21899
for (const subPath of f) {
21900
if (subPath.includes(".md")) {
21901
let pageTitle = subPath.replace(".md", "");
0 commit comments