From 613bb470fb50cd05a02a7b26f85ff43cab2071be Mon Sep 17 00:00:00 2001 From: Dmytro <45358107+dumitory-dev@users.noreply.github.com> Date: Mon, 1 Jul 2024 18:15:15 +0300 Subject: [PATCH] fix(ci): improve Telegram bot action --- .github/workflows/telegram-bot.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/telegram-bot.yml b/.github/workflows/telegram-bot.yml index 2fbcec96..fa3e59e8 100644 --- a/.github/workflows/telegram-bot.yml +++ b/.github/workflows/telegram-bot.yml @@ -68,9 +68,11 @@ jobs: TEXT=`echo -e "Due to GitHub Actions bug we cannot identify, who approved PR#$PR_NUMBER"` elif [[ ! -z "${{ github.event.workflow_run }}" && "${{ github.event.workflow_run.conclusion }}" == "success" ]]; then - TEXT=`echo -e "Universum run for branch "$UNIVERSUM_BRANCH" SUCCEDED; commit "$UNIVERSUM_BRANCH" "` + ESCAPED_TEXT=`echo -e "$UNIVERSUM_BRANCH"| sed 's/\&/\&/g' | sed 's//\>/g'` + TEXT=`echo -e "Universum run for branch "$ESCAPED_TEXT" SUCCEDED; commit "$ESCAPED_TEXT" "` elif [[ ! -z "${{ github.event.workflow_run }}" && "${{ github.event.workflow_run.conclusion }}" == "failure" ]]; then - TEXT=`echo -e "Universum run for branch "$UNIVERSUM_BRANCH" FAILED; commit "$UNIVERSUM_BRANCH" "` + ESCAPED_TEXT=`echo -e "$UNIVERSUM_BRANCH"| sed 's/\&/\&/g' | sed 's//\>/g'` + TEXT=`echo -e "Universum run for branch "$ESCAPED_TEXT" FAILED; commit "$ESCAPED_TEXT" "` fi if [[ ! -z $TEXT ]]; then