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 afd1138 commit 562c7fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CheckWikiUpdates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
DATE=$(git log -1 --format=%cd --date=iso)
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")" >> $GITHUB_ENV
echo "hash=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "commitCount=$(git rev-list --count --since='24 hours ago' HEAD)" >> $GITHUB_ENV
Expand Down

0 comments on commit 562c7fa

Please sign in to comment.