Skip to content

Commit 0e155f2

Browse files
committed
Fix Discord notification: ensure each commit is on its own line
1 parent 6edcb81 commit 0e155f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/discord-activity.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
COMMITS=$(jq -r --arg repo "$REPO_URL" '.commits | to_entries[] |
2222
(1 + .key | tostring) + ". " +
2323
(.value.message | gsub("\\r?\\n"; " ")) +
24-
" [" + .value.id[0:7] + "](" + $repo + "/commit/" + .value.id + ") by " + .value.author.name' <<< "$EVENT")
24+
" [" + .value.id[0:7] + "](" + $repo + "/commit/" + .value.id + ") by " + .value.author.name + "\n"' <<< "$EVENT")
2525
2626
{
2727
echo "COUNT=$COUNT"
@@ -37,7 +37,7 @@ jobs:
3737
env:
3838
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
3939
with:
40-
args: >
40+
args: |
4141
🚀 **Push Event**
4242
📦 Repository: `${{ github.repository }}`
4343
👤 Author: `${{ github.actor }}`

0 commit comments

Comments
 (0)