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.

16 lines
471 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: curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage -d chat_id=${{ secrets.TELEGRAM_CHAT_ID }} -d text="${MESSAGE}" >> /dev/null
  11. env:
  12. MESSAGE: "Issue ${{ github.event.action }}: \n${{ github.event.issue.html_url }}"