Skip to content

Commit

Permalink
actions: fix quoting on the 5th try
Browse files Browse the repository at this point in the history
  • Loading branch information
Bravo555 authored Sep 23, 2023
1 parent 1c08401 commit 9863cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
CHANNEL_ID: ${{ secrets.ANNOUNCEMENT_CHANNEL_ID }}
OLD_COMMIT_SHA: ${{ github.event.before }}
run: |
msg=$(git log --no-decorate ${OLD_COMMIT_SHA}..)
msg=$(git log --no-decorate ${OLD_COMMIT_SHA}.. | sed -z 's/\n/\\n/g')
curl https://discord.com/api/channels/${CHANNEL_ID}/messages -H "Authorization: Bot ${DISCORD_TOKEN}" -X POST -H "Content-Type: application/json" -d '{"content": "Deploying new version of the bot...\nNew changes:\n\n' "$msg" '"}'
- name: Fetch the binary
Expand Down

0 comments on commit 9863cb9

Please sign in to comment.