diff --git a/.github/workflows/update-repo.yml b/.github/workflows/update-repo.yml index 3b498bd..b9a81ff 100644 --- a/.github/workflows/update-repo.yml +++ b/.github/workflows/update-repo.yml @@ -48,6 +48,28 @@ jobs: done echo "" >> index.html + - name: Generate Python-Style Index + run: | + cd x86_64 + # Start the HTML file + echo "Index of /x86_64/" > index.html + echo "

Index of /x86_64/


" >> index.html
+          
+          # Add the 'Parent Directory' link
+          echo "../" >> index.html
+          
+          # Loop through every file in the folder and make a link
+          for file in *; do
+            # Don't list the index.html file itself
+            if [ "$file" != "index.html" ]; then
+              # Get file size for that authentic look (optional)
+              size=$(du -sh "$file" | cut -f1)
+              echo "$file                     $(date -r "$file" '+%d-%b-%Y %H:%M')    $size" >> index.html
+            fi
+          done
+          
+          echo "

" >> index.html + - name: Commit and Push changes run: | git config --global user.name "github-actions[bot]"