diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-03-14 15:26:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 15:26:26 -0400 |
commit | 3bdf9d7c654969cd3c01a864793fd7a78227fcb4 (patch) | |
tree | 1272dea5fc33b9a61ca0a44165f655b36ec8df9f | |
parent | ac5274b8c2e65ad0c00ff7268729f0e42856bfc2 (diff) | |
parent | f8aa4419fc633d7ae760bdd3f094fbccf1b2045b (diff) |
Merge pull request #496 from GriffinRichards/sync-webhook
Add line breaks around webhook output
-rwxr-xr-x | .github/calcrom/webhook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/calcrom/webhook.sh b/.github/calcrom/webhook.sh index 2a3015969..fd54b660b 100755 --- a/.github/calcrom/webhook.sh +++ b/.github/calcrom/webhook.sh @@ -8,4 +8,4 @@ if [ ! -f $map_file ]; then fi output=$(perl $(dirname "$0")/calcrom.pl $build_name.map | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') -curl -d "{\"username\": \"$CALCROM_DISCORD_WEBHOOK_USERNAME\", \"avatar_url\": \"$CALCROM_DISCORD_WEBHOOK_AVATAR_URL\", \"content\":\"\`\`\`$build_name progress:\\n$output\`\`\`\"}" -H "Content-Type: application/json" -X POST "$CALCROM_DISCORD_WEBHOOK_URL" +curl -d "{\"username\": \"$CALCROM_DISCORD_WEBHOOK_USERNAME\", \"avatar_url\": \"$CALCROM_DISCORD_WEBHOOK_AVATAR_URL\", \"content\":\"\`\`\`\\n$build_name progress:\\n$output\\n\`\`\`\"}" -H "Content-Type: application/json" -X POST "$CALCROM_DISCORD_WEBHOOK_URL" |