You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
515 B

  1. name: Telegram Notifications
  2. on:
  3. issues:
  4. types: [opened, reopened, deleted, closed]
  5. jobs:
  6. notify:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: Send notifications to Telegram
  10. run:
  11. curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN
  12. }}/sendMessage -d chat_id=${{ secrets.TELEGRAM_CHAT_ID }} -d text="${MESSAGE}"
  13. >> /dev/null
  14. env:
  15. MESSAGE:
  16. "Issue ${{ github.event.action }}: \n${{ github.event.issue.html_url }}"