Skip to content

Commit

Permalink
[ci] link to build logs for failures
Browse files Browse the repository at this point in the history
  • Loading branch information
codefrau committed Mar 18, 2024
1 parent 1b4d4c7 commit 39e812a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ if [ -n "$SLACK_HOOK_URL" ] ; then
if [ $NUM_FAILED -eq 0 ] ; then
JSON="{\"text\": \"😍 *Worldcore build succeeded for all apps* 😍\n${URL}\"}"
else
APPS=$(printf "• %s\\\\n" "${FAILED[@]}")
APPS=""
for APP in ${FAILED[@]} ; do
LOG="https://croquet.github.io/worldcore/${APP}/build.log"
APPS="${APPS}\n• <${LOG}|${APP}>"
done
JSON="{\"text\": \"💩 *Worldcore builds failed for ${NUM_FAILED}/${NUM_TOTAL} apps* 💩\n${URL}\n${APPS}\"}"
fi
curl -sSX POST -H 'Content-type: application/json' --data "${JSON}" $SLACK_HOOK_URL
Expand Down

0 comments on commit 39e812a

Please sign in to comment.