From adeb6016a86e5b42a96df2a473618afc0f870c24 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Wed, 11 Sep 2019 09:13:09 +0000 Subject: [PATCH] :shield: telegram notifactions for issues --- .github/workflows/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..58f7d5e --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }}"