Skip to content

Commit

Permalink
🛡️ telegram notifactions for issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Yelizariev committed Sep 11, 2019
1 parent f7af820 commit adeb601
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Telegram Notifications

on:
issues:
types: [opened, reopened, deleted, closed]

jobs:
notify:

runs-on: ubuntu-latest

steps:
- name: Send notifications to Telegram
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
env:
MESSAGE: "Issue ${{ github.event.action }}: \n${{ github.event.issue.html_url }}"

0 comments on commit adeb601

Please sign in to comment.