name: Telegram Notification

on:
  release:
    types: [published]

jobs:
  telegram:
    runs-on: ubuntu-latest
    steps:
      - name: send telegram message on push
        uses: appleboy/telegram-action@master
        with:
          to: ${{ secrets.TELEGRAM_TO }}
          token: ${{ secrets.TELEGRAM_TOKEN }}
          message: |
            New release: ${{ github.event.release.title }}
            Link: ${{ github.event.release.html_url }}