Skip to content

Commit

Permalink
correct action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxZarev committed Jul 21, 2024
1 parent ea77610 commit 8a186bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/notify-telegram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 8a186bf

Please sign in to comment.