File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 fi
7272 fi
7373
74+ - name : Insert redirecting Index.html in folders missing one
75+ shell : bash
76+ run : |
77+ find result -type d | while read dir; do
78+ if [ ! -f "$dir/Index.html" ]; then
79+ echo "Creating Index.html in $dir"
80+ echo '<!DOCTYPE html>' > "$dir/Index.html"
81+ echo '<html>' >> "$dir/Index.html"
82+ echo ' <head>' >> "$dir/Index.html"
83+ echo ' <meta http-equiv="refresh" content="0; url=../Index.html">' >> "$dir/Index.html"
84+ echo ' </head>' >> "Index/index.html"
85+ echo ' <body>' >> "$dir/Index.html"
86+ echo ' <p>If you are not redirected, <a href="../Index.html">click here</a>.</p>' >> "$dir/Index.html"
87+ echo ' </body>' >> "$dir/Index.html"
88+ echo '</html>' >> "$dir/Index.html"
89+ fi
90+ done
91+
7492 - name : Upload Documentation
7593 uses : appleboy/scp-action@master
7694 with :
You can’t perform that action at this time.
0 commit comments