themakers / telegram-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a JavaScript Action

Fully functional example action:

name: notify organization telegram
on: [push, pull_request, create, issues, issue_comment, watch]
jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - uses: themakers/telegram-action@master
        with:
          token: ${{ secrets.TELEGRAM_TOKEN }} # your bot token
          to: ${{ secrets.TELEGRAM_TO }} # your room id

To obtain your telegram room ID you could use this command:

curl https://api.telegram.org/bot${TELEGRAM_TOKEN}/getUpdates | python -m json.tool

TODO

  • TODO: Allow comma-separated list of rooms in secrets.TELEGRAM_TO

TODO

javscript-action status

About

License:MIT License


Languages

Language:JavaScript 100.0%