Compare commits

..

2 commits

Author SHA1 Message Date
Bruno BELANYI 021b0bb988 matrix-notifier: add option to disable mardown
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-16 20:57:44 +02:00
Bruno BELANYI 919c98f67c WIP test out markdown
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-16 20:42:56 +02:00

View file

@ -39,13 +39,8 @@ rawurlencode() {
}
default_drone_message() {
local msg="Build ${DRONE_BUILD_STATUS}"
local drone_url="${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}/${DRONE_REPO}/${DRONE_BUILD_NUMBER}"
if [ "$FORMAT" == "true" ]; then
msg="$msg [URL HERE]($drone_url)"
else
msg="$msg $drone_url"
fi
local msg="Build *${DRONE_BUILD_STATUS}*"
msg="$msg ${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}/${DRONE_REPO}/${DRONE_BUILD_NUMBER}"
msg="$msg (${DRONE_TAG:-$DRONE_BRANCH})"
printf '%s' "$msg"
}