Skip to content

Commit 2088fd4

Browse files
authored
Update main.yml
1 parent 3705706 commit 2088fd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616
run: |
1717
echo "## 📂 Last 5 Uploaded Files" > latest_files.md
1818
echo "" >> latest_files.md
19-
git log --name-only --pretty=format:"%ad - %h" --date=short | grep -v '^$' | head -10 | awk '!seen[$0]++' | head -5 | while read -r line; do
20-
filename=$(echo $line | awk '{print $3}')
21-
filedate=$(echo $line | awk '{print $1}')
19+
git log --pretty=format:'%ad %h' --date=short --name-only | awk 'NF' | head -20 | awk '!seen[$0]++' | head -5 | while read -r filedate hash filename; do
2220
if [[ -n "$filename" ]]; then
2321
echo "- [$filename](https://github.com/AKC23/Programming-problems-solutions/blob/master/$filename) (📅 $filedate)" >> latest_files.md
2422
fi

0 commit comments

Comments
 (0)