Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/gui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ jobs:
CACHE_BUCKET: ${{ env.S3_PUBLIC_CACHE_BUCKET }}
MATRIX_TOKEN: ${{ secrets.MATRIX_TOKEN }}
GITHUB_BUILD_STATUS: ${{ needs.gui-tests.result }}
COMMIT_AUTHOR: ${{ github.event.head_commit.author.name }}
run: bash test/gui/ci/notification_template.sh .
7 changes: 4 additions & 3 deletions test/gui/ci/notification_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ TEST_LOGS=""
BRANCH_NAME="${GITHUB_REF_NAME}"
ROOMID="!rnWsCVUmDHDJbiSPMM:matrix.org"

COMMIT_AUTHOR=$(git log -1 --pretty=format:'%an' 2>/dev/null)

if [ "${GITHUB_BUILD_STATUS}" == "failure" ]; then
BUILD_STATUS="❌️ Failure"
fi
Expand Down Expand Up @@ -70,7 +68,10 @@ log_success() {

GITHUB_BUILD_LINK="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"

message_html='<b>'$BUILD_STATUS'</b> <a href="'${GITHUB_BUILD_LINK}'">'${GITHUB_REPOSITORY}'#'$COMMIT_SHA_SHORT'</a> ('${BRANCH_NAME}') by <b>'${COMMIT_AUTHOR}'</b> <br> <b>'"${TEST_LOGS}"'</b>'
AUTHOR_NAME=""
[ "$GITHUB_EVENT_NAME" != "schedule" ] && AUTHOR_NAME=" by <b>$COMMIT_AUTHOR</b>"

message_html='<b>'$BUILD_STATUS'</b> <a href="'${GITHUB_BUILD_LINK}'">'${GITHUB_REPOSITORY}'#'$COMMIT_SHA_SHORT'</a> ('${BRANCH_NAME}')'${AUTHOR_NAME}' <br> <b>'"${TEST_LOGS}"'</b>'
message_html=$(echo "$message_html" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g')

log_info "Sending report to the element chat..."
Expand Down