Skip to content

Commit

Permalink
Merge pull request #226 from yelizariev/12.0-telegram-notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
itpp-bot authored Sep 11, 2019
2 parents f7af820 + adeb601 commit f2c1217
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 f2c1217

Please sign in to comment.