From 33cf86942bf9dc236932a191e026477850169cbd Mon Sep 17 00:00:00 2001 From: mahdi Date: Thu, 14 Dec 2023 23:26:11 +0100 Subject: [PATCH] devops - drone test --- .drone.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index d32ed7e..7a10bee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,11 +61,10 @@ steps: ZULIP_TKN: from_secret: ZULIP_TOKEN commands: - - if [ "${DRONE_BUILD_STATUS}" != "success" ]; then export ZULIP_STATUS=":prohibited:"; fi - - export ZULIP_MESSAGE=$(bash -c "echo $${DRONE_COMMIT_MESSAGE:0:-2}") + - if [ "${DRONE_BUILD_STATUS}" != "success" ]; then export ZULIP_STATUS=":prohibited:"; fi + - export ZULIP_MESSAGE=$(bash echo ${DRONE_COMMIT_MESSAGE}) - export SHORT_COMMIT=$${DRONE_COMMIT:0:7} - echo $SHORT_COMMIT - # - echo $${SHORT_COMMIT:0:7} - echo $ZULIP_STATUS - echo $ZULIP_MESSAGE - bash -c "echo $${ZULIP_COMMIT:0:7}"