From 39e812abae7dfe88f77787a0e826abd0ffc609f3 Mon Sep 17 00:00:00 2001 From: Vanessa Freudenberg Date: Sun, 17 Mar 2024 20:28:49 -0700 Subject: [PATCH] [ci] link to build logs for failures --- scripts/build-pages.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-pages.sh b/scripts/build-pages.sh index 8b626aa4..1e5fee28 100755 --- a/scripts/build-pages.sh +++ b/scripts/build-pages.sh @@ -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