diff --git a/.github/workflows/gui-tests.yml b/.github/workflows/gui-tests.yml
index 0117e4b5e0e..dd5e595a22c 100644
--- a/.github/workflows/gui-tests.yml
+++ b/.github/workflows/gui-tests.yml
@@ -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 .
diff --git a/test/gui/ci/notification_template.sh b/test/gui/ci/notification_template.sh
index 959a0d2d258..1c79f342da4 100755
--- a/test/gui/ci/notification_template.sh
+++ b/test/gui/ci/notification_template.sh
@@ -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
@@ -70,7 +68,10 @@ log_success() {
GITHUB_BUILD_LINK="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
-message_html=''$BUILD_STATUS' '${GITHUB_REPOSITORY}'#'$COMMIT_SHA_SHORT' ('${BRANCH_NAME}') by '${COMMIT_AUTHOR}'
'"${TEST_LOGS}"''
+AUTHOR_NAME=""
+[ "$GITHUB_EVENT_NAME" != "schedule" ] && AUTHOR_NAME=" by $COMMIT_AUTHOR"
+
+message_html=''$BUILD_STATUS' '${GITHUB_REPOSITORY}'#'$COMMIT_SHA_SHORT' ('${BRANCH_NAME}')'${AUTHOR_NAME}'
'"${TEST_LOGS}"''
message_html=$(echo "$message_html" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g')
log_info "Sending report to the element chat..."