Point OK webhook at out-of-tree build

This commit is contained in:
Rachel 2024-03-11 14:53:07 -07:00 committed by GitHub
parent bbb7e8e784
commit 7b3ca58a90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,5 +10,5 @@ fi
url="$1"
build_name="platinum.us"
output=$(${GITHUB_WORKSPACE}/.github/calcrom/calcrom.py ${GITHUB_WORKSPACE}/build | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
output=$(${GITHUB_WORKSPACE}/.github/calcrom/calcrom.py /var/tmp/pokeplatinum | 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 $url