From 8a186bf3fb572e5d9fe565f897832ff886e1e653 Mon Sep 17 00:00:00 2001 From: Max Zarev Date: Sun, 21 Jul 2024 16:20:35 +0700 Subject: [PATCH] correct action --- .github/workflows/notify-telegram.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify-telegram.yml b/.github/workflows/notify-telegram.yml index 6c65ccd..a4059f1 100644 --- a/.github/workflows/notify-telegram.yml +++ b/.github/workflows/notify-telegram.yml @@ -26,5 +26,8 @@ jobs: COMMIT_MESSAGE: ${{ env.COMMIT_MESSAGE }} COMMIT_DESCRIPTION: ${{ env.COMMIT_DESCRIPTION }} run: | - MESSAGE="Скрипт обновлен.\nMessage: ${COMMIT_MESSAGE}\nDescription: ${COMMIT_DESCRIPTION}" + MESSAGE="""Скрипт обновлен. + Message: ${COMMIT_MESSAGE} + Description: ${COMMIT_DESCRIPTION}""" + curl -s -X POST https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage -d chat_id=${TELEGRAM_CHAT_ID} -d text="${MESSAGE}" -d message_thread_id=${THREAD_ID}