From 8c812ae791016370027a31796b21ddd197706d71 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 13 Dec 2023 23:37:36 +0100 Subject: [PATCH] devops - drone test --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e0ac07e..8799ad4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -28,7 +28,9 @@ steps: - name: notify image: pluie/alpine commands: - - curl -s -k -X POST https://zulip.meta-tech.academy/api/v1/messages -u drone-bot@zulip.meta-tech.academy:iIm8Hc2VuvK06iDxUODUIndlRu6As6bO --data-urlencode type=stream --data-urlencode 'to="gitea"' --data-urlencode topic=build --data-urlencode content="build n° ${DRONE_BUILD_NUMBER} - ${DRONE_REPO}/${DRONE_REPO_BRANCH}/${DRONE_COMMIT} by ${DRONE_COMMIT_AUTHOR} - status:${DRONE_BUILD_STATUS}${${DRONE_COMMIT_MESSAGE}:1:-1}" + - export msg=${DRONE_COMMIT_MESSAGE} + - export msg=${msg:1:-1} + - curl -s -k -X POST https://zulip.meta-tech.academy/api/v1/messages -u drone-bot@zulip.meta-tech.academy:iIm8Hc2VuvK06iDxUODUIndlRu6As6bO --data-urlencode type=stream --data-urlencode 'to="gitea"' --data-urlencode topic=build --data-urlencode content="build n° ${DRONE_BUILD_NUMBER} - ${DRONE_REPO}/${DRONE_REPO_BRANCH}/${DRONE_COMMIT} by ${DRONE_COMMIT_AUTHOR} - status:${DRONE_BUILD_STATUS}$msg" volumes: - name: deps