Skip to content

Commit

Permalink
Merge branch 'pu/mm/fix-ci-matrix-release-message' into '2023.11'
Browse files Browse the repository at this point in the history
ci(release): fix release message produces invalied json

See merge request tine20/tine20!6404
  • Loading branch information
byteplow committed Jan 16, 2025
2 parents 0fd0ce1 + 08a705f commit d8e78ec
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
30 changes: 24 additions & 6 deletions ci/gitlab-ci/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,14 @@
matrix_send_message $MATRIX_ROOM "🟒 Packages for ${version} have been released to github."
if [ "${RELEASE_TYPE}" == "be" ]; then
matrix_send_message "!gGPNgDOyMWwSPjFFXa:matrix.org" "We just released the new version \"${CODENAME}\" ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
if [ "${RELEASE_TYPE}" == "be" ] || [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="!gGPNgDOyMWwSPjFFXa:matrix.org"
if [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="${MATRIX_ROOM}"
fi
matrix_send_message "${matrix_room}" "We just released the new version ${CODENAME} ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
fi
}
Expand Down Expand Up @@ -1884,8 +1890,14 @@
matrix_send_message $MATRIX_ROOM "🟒 Packages for ${version} have been released to github."
if [ "${RELEASE_TYPE}" == "be" ]; then
matrix_send_message "!gGPNgDOyMWwSPjFFXa:matrix.org" "We just released the new version \"${CODENAME}\" ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
if [ "${RELEASE_TYPE}" == "be" ] || [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="!gGPNgDOyMWwSPjFFXa:matrix.org"
if [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="${MATRIX_ROOM}"
fi
matrix_send_message "${matrix_room}" "We just released the new version ${CODENAME} ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
fi
}
Expand Down Expand Up @@ -3042,8 +3054,14 @@
matrix_send_message $MATRIX_ROOM "🟒 Packages for ${version} have been released to github."
if [ "${RELEASE_TYPE}" == "be" ]; then
matrix_send_message "!gGPNgDOyMWwSPjFFXa:matrix.org" "We just released the new version \"${CODENAME}\" ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
if [ "${RELEASE_TYPE}" == "be" ] || [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="!gGPNgDOyMWwSPjFFXa:matrix.org"
if [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="${MATRIX_ROOM}"
fi
matrix_send_message "${matrix_room}" "We just released the new version ${CODENAME} ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
fi
}
Expand Down
10 changes: 8 additions & 2 deletions ci/gitlab-ci/lib/scripts/release_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ release_packages_notify_matrix() {

matrix_send_message $MATRIX_ROOM "🟒 Packages for ${version} have been released to github."

if [ "${RELEASE_TYPE}" == "be" ]; then
matrix_send_message "!gGPNgDOyMWwSPjFFXa:matrix.org" "We just released the new version \"${CODENAME}\" ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
if [ "${RELEASE_TYPE}" == "be" ] || [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="!gGPNgDOyMWwSPjFFXa:matrix.org"

if [ "${RELEASE_TYPE}" == "nightly" ]; then
matrix_room="${MATRIX_ROOM}"
fi

matrix_send_message "${matrix_room}" "We just released the new version ${CODENAME} ${version} πŸŽ‰\\nCheck https://www.tine-groupware.de/ and https://github.com/tine-groupware/tine/releases for more information and the downloads.\\nYou can also pull the image from dockerhub: https://hub.docker.com/r/tinegroupware/tine"
fi
}

Expand Down

0 comments on commit d8e78ec

Please sign in to comment.