diff --git a/.github/workflows/on_file_change.yml b/.github/workflows/on_file_change.yml index fc52a21..9893ca7 100644 --- a/.github/workflows/on_file_change.yml +++ b/.github/workflows/on_file_change.yml @@ -49,6 +49,7 @@ jobs: table_html="" table_html+="" table_html+="" + table_html+=$'\n' # Loop through all files in the directory for file in $(find "$dir" -mindepth 1 -maxdepth 1 -type f ! -name "*.html" | sort) do @@ -59,6 +60,7 @@ jobs: modified=$(git log -1 --format=%cd --date=format:'%d %b %Y %l:%M %p' -- "$file") # Create a table row with the file information table_html+="" + table_html+=$'\n' fi done table_html+="
File NameFile SizeLast Modified
$filename$filesize$modified
" @@ -74,6 +76,7 @@ jobs: table_html="" table_html+="" table_html+="" + table_html+=$'\n' # Loop through all folders in the directory for subdir in $(find "$release_dir" -mindepth 1 -maxdepth 1 -type d ! -name ".*" | sort) do @@ -83,6 +86,7 @@ jobs: modified=$(git log -1 --format=%cd --date=format:'%d %b %Y %l:%M %p' -- "$subdir") # Create a table row with the file information table_html+="" + table_html+=$'\n' done table_html+="
Folder NameFile CountLast Modified
$folder$filecount$modified
" # Add parent link (expect top level index) @@ -96,6 +100,7 @@ jobs: table_html="" table_html+="" table_html+="" + table_html+=$'\n' # Loop through all folders in the directory for subdir in $(find . -mindepth 1 -maxdepth 1 -type d ! -name ".*" | sort -rn) do @@ -105,6 +110,7 @@ jobs: modified=$(git log -1 --format=%cd --date=format:'%d %b %Y %l:%M %p' -- "$subdir") # Create a table row with the file information table_html+="" + table_html+=$'\n' done table_html+="
Folder NameFile CountLast Modified
$folder$filecount$modified
" # Assemble and save HTML @@ -113,4 +119,4 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Update file index pages - file_pattern: 'index.html **/index.html' \ No newline at end of file + file_pattern: 'index.html **/index.html'