mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
14 lines
398 B
Bash
Executable File
14 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Report unnamed symbols
|
|
content="$(tools/unnamed.py -r . pokecrystal.sym | grep -v -e '^lib/mobile/' -e '^mobile/' | head)"
|
|
|
|
curl -H 'Content-Type: application/json' -X POST "$DISCORD_WEBHOOK_URL" -d@- << EOF
|
|
{
|
|
"username": "OK",
|
|
"avatar_url": "https://i.imgur.com/38BQHdd.png",
|
|
"content": "\`\`\`$(echo "$content" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')\`\`\`"
|
|
}
|
|
EOF
|