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 6, 2024
1 parent 4db0251 commit 4c33ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/CheckWikiUpdates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
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")" >> $GITHUB_ENV
printf "commitMessage=\"%s\"\n" "$(git log -1 --pretty=%B | sed ':a;N;$!ba;s/\n/"<br/>"/g' | sed "s/'/\\\\'/g")" >> $GITHUB_ENV
printf "commitMessage=\"%s\"\n" "$(git log -1 --pretty=%B | awk -v RS="" '{gsub(/\n/,"<br/>"); print}' | 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 4c33ba3

Please sign in to comment.