Skip to content

Commit

Permalink
ci: Reduce blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hughlv committed Aug 13, 2024
1 parent 775a86c commit dee33d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/discord-release-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:
sed 's/`//g' |
sed -E 's/^[0-9]+\.[0-9]+\.[0-9]+ \([0-9]{4}-[0-9]{2}-[0-9]{2}\)//g' |
sed '/^$/N;/^\n$/D' |
sed -E 's/^(Bug Fixes|Features|BREAKING CHANGES)/\n**\1**\n/g' |
sed -E 's/^([A-Z][a-z]+ [A-Z][a-z]+)/\n**\1**\n/g' |
sed -E 's/^(Bug Fixes|Features|BREAKING CHANGES)/\n**\1**/g' |
sed -E 's/^([A-Z][a-z]+ [A-Z][a-z]+)/\n**\1**/g' |
sed ':a;N;$!ba;s/\n{3,}/\\n\\n/g' | # Replace multiple newlines with two
sed ':a;N;$!ba;s/\n/\\n/g')
echo "Sending notification for release: $RELEASE_TAG"
curl -H "Content-Type: application/json" -X POST -d @- $DISCORD_WEBHOOK <<EOF
Expand Down

0 comments on commit dee33d1

Please sign in to comment.