kep-hack/.github/webhook.sh
emaskyesmogon cdd722264b rgbds stuff i think?
somehow these files got changed and it won't let me delete them, which is preventing m. they're cygwin-related files so idk what to do with them. just like ignore them i guess
2022-08-31 08:51:07 -06:00

14 lines
352 B
Bash

#!/bin/sh
set -e
# Report unnamed symbols
content="$(tools/unnamed.py -r . pokered.sym | 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