test_telegram.yml 646 B

1234567891011121314151617181920
  1. name: telegram message
  2. on: workflow_dispatch
  3. jobs:
  4. build:
  5. name: test
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: send telegram message on push
  9. env:
  10. TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
  11. TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
  12. TELEGRAM_MESSAGE_THREAD_ID: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}
  13. run: |
  14. curl -X POST "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage" \
  15. -d "chat_id=$TELEGRAM_CHAT_ID" \
  16. -d "message_thread_id=$TELEGRAM_MESSAGE_THREAD_ID" \
  17. -d "text=TEST
  18. test
  19. test33"