Skip to content

Commit

Permalink
Update CheckWikiUpdates.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb authored Jul 23, 2024
1 parent c88f58a commit 9b4380f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/CheckWikiUpdates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
FORMATTED_DATE=$(date -d"$DATE" +'%Y-%m-%d %H:%M:%S')
echo "updatedOn=$FORMATTED_DATE" >> $GITHUB_ENV
# The :a;N;$!ba; part buffers the input to ensure that all newline characters are replaced, not just those at the end of each line read
printf "commitMessage=\"%s\"\n" "$(git log -1 --pretty=%B | sed ':a;N;$!ba;s/\n/ ↲ /g' | sed "s/'/\\\\'/g")" | "s/(/\\\\(/g" | sed "s/)/\\\\)/g" >> $GITHUB_ENV
# Removed | "s/(/\\\\(/g" | sed "s/)/\\\\)/g"
printf "commitMessage=\"%s\"\n" "$(git log -1 --pretty=%B | sed ':a;N;$!ba;s/\n/ ↲ /g' | sed "s/'/\\\\'/g")" >> $GITHUB_ENV
echo "hash=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "commitCount=$(git rev-list --count --since='24 hours ago' HEAD)" >> $GITHUB_ENV
- name: Print variables
Expand Down

0 comments on commit 9b4380f

Please sign in to comment.