Skip to content

Commit d6c1fe5

Browse files
authored
formatting test <:bronkbuk:1377330730342023309>
formatting test <:bronkbuk:1377330730342023309> > - **TEST** > - **TEST** > - **__TEST__**
2 parents 515c277 + 41d535b commit d6c1fe5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/discord.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
steps:
1111
- name: Send Discord Embed via Curl
1212
run: |
13-
# Escape the commit message to preserve newlines and markdown
14-
MESSAGE=$(echo '${{ github.event.head_commit.message }}' | jq -Rs . | sed 's/^"//;s/"$//')
13+
# Properly escape newlines and markdown in the commit message
14+
MESSAGE=$(echo '${{ github.event.head_commit.message }}' | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
1515
1616
PAYLOAD=$(jq -n --arg author "${{ github.actor }}" \
1717
--arg author_avatar "${{ github.actor_avatar_url }}" \

0 commit comments

Comments
 (0)