Skip to content

Commit e02a11a

Browse files
committed
[TASK] Insert redirecting Index.html in folders missing one
1 parent ee5f5a3 commit e02a11a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main-rendering.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
- name: Insert redirecting Index.html in folders missing one
7575
shell: bash
7676
run: |
77-
find result -type d | while read dir; do
77+
find result \( -path "*/_sources" -o -path "*/_sources/*" -o -path "*/_resources" -o -path "*/_resources/*" \) -prune -o -type d -print | while read dir; do
7878
if [ ! -f "$dir/Index.html" ]; then
7979
echo "Creating Index.html in $dir"
8080
echo '<!DOCTYPE html>' > "$dir/Index.html"
@@ -89,6 +89,7 @@ jobs:
8989
fi
9090
done
9191
92+
9293
- name: Upload Documentation
9394
uses: appleboy/scp-action@master
9495
with:

0 commit comments

Comments
 (0)