Switch from Travis CI to GitHub Actions

This commit is contained in:
Rangi
2021-06-19 21:52:15 -04:00
parent f59f1bdb88
commit 72f3234e03
6 changed files with 82 additions and 65 deletions

13
.github/webhook.sh vendored Executable file
View File

@@ -0,0 +1,13 @@
#!/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