Skip to content

Commit

Permalink
fix(ci): improve Telegram bot action
Browse files Browse the repository at this point in the history
  • Loading branch information
dumitory-dev authored Jul 1, 2024
1 parent f1f1057 commit 613bb47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/telegram-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ jobs:
TEXT=`echo -e "Due to GitHub Actions bug we cannot identify, who approved <a href=\"$PR_URL\">PR#$PR_NUMBER</a>"`
elif [[ ! -z "${{ github.event.workflow_run }}" && "${{ github.event.workflow_run.conclusion }}" == "success" ]]; then
TEXT=`echo -e "<a href=\"$UNIVERSUM_LOG\">Universum run for branch "$UNIVERSUM_BRANCH"</a> <b>SUCCEDED</b>; commit "$UNIVERSUM_BRANCH" "`
ESCAPED_TEXT=`echo -e "$UNIVERSUM_BRANCH"| sed 's/\&/\&amp;/g' | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'`
TEXT=`echo -e "<a href=\"$UNIVERSUM_LOG\">Universum run for branch "$ESCAPED_TEXT"</a> <b>SUCCEDED</b>; commit "$ESCAPED_TEXT" "`
elif [[ ! -z "${{ github.event.workflow_run }}" && "${{ github.event.workflow_run.conclusion }}" == "failure" ]]; then
TEXT=`echo -e "<a href=\"$UNIVERSUM_LOG\">Universum run for branch "$UNIVERSUM_BRANCH"</a> <b>FAILED</b>; commit "$UNIVERSUM_BRANCH" "`
ESCAPED_TEXT=`echo -e "$UNIVERSUM_BRANCH"| sed 's/\&/\&amp;/g' | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g'`
TEXT=`echo -e "<a href=\"$UNIVERSUM_LOG\">Universum run for branch "$ESCAPED_TEXT"</a> <b>FAILED</b>; commit "$ESCAPED_TEXT" "`
fi
if [[ ! -z $TEXT ]]; then
Expand Down

0 comments on commit 613bb47

Please sign in to comment.