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:
Allow comma-separated list of rooms insecrets.TELEGRAM_TO
TODO