diff --git a/.github/workflows/telegram_notify.yml b/.github/workflows/telegram_notify.yml new file mode 100644 index 0000000000..c7a14d3cc6 --- /dev/null +++ b/.github/workflows/telegram_notify.yml @@ -0,0 +1,20 @@ +name: Telegram Notification + +on: + pull_request: + types: [created, closed, opened, reopened, synchronize] + pull_request_target: + types: [ created, closed, opened, reopened, synchronize ] + issues: + types: [created, closed, opended, reopened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Notify the commit on Telegram + uses: EverythingSuckz/github-telegram-notify@main + with: + bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }} + chat_id: ${{ secrets.TELEGRAM_CHAT_ID }}