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