|
|
@@ -356,9 +356,13 @@ jobs:
|
|
|
echo "GitHub release created with the following files:"
|
|
|
ls ./downloaded-artifacts/**/*
|
|
|
|
|
|
- - name: send telegram message
|
|
|
- uses: appleboy/telegram-action@master
|
|
|
- with:
|
|
|
- to: ${{ secrets.TELEGRAM_TO }}
|
|
|
- token: ${{ secrets.TELEGRAM_TOKEN }}
|
|
|
- message: ${{ env.RELEASE_NOTES }}
|
|
|
+ - name: send telegram message on push
|
|
|
+ env:
|
|
|
+ TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
|
|
+ TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
|
|
+ TELEGRAM_MESSAGE_THREAD_ID: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}
|
|
|
+ run: |
|
|
|
+ curl -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
|
|
|
+ -d "chat_id=$TELEGRAM_CHAT_ID" \
|
|
|
+ -d "message_thread_id=$TELEGRAM_MESSAGE_THREAD_ID" \
|
|
|
+ -d "text=${{ env.RELEASE_NOTES }}"
|