Skip to content

Commit 613251c

Browse files
committed
fix(ci): Modify mdupdater to write both create & update history of a same date
1 parent 7d1faaa commit 613251c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/mdupdater.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ while read filepath; do
4848

4949
if [[ "$filedate" == "$TODAY" ]]; then
5050
echo "- [New!] 📗 [$filetitle ($filetitle_en)]($pagepath) \`repo: $filepath\`" >> $FILE
51-
elif [[ "$fileupdate" == "$TODAY" ]]; then
51+
fi
52+
if [[ "$fileupdate" == "$TODAY" ]]; then
5253
echo "- [Update] 📙 [$filetitle ($filetitle_en)]($pagepath) 📃🔍 [history](https://github.com/Queue-ri/TIL/commits/main/${filepath}?since=${TODAY}T00:00:00Z&until=${TODAY}T23:59:59Z) \`repo: $filepath\`" >> $FILE
5354
fi
5455
done < .github/filepath_list

0 commit comments

Comments
 (0)