Skip to content
Compare
Choose a tag to compare
@chapvic chapvic released this 29 Jun 16:58
· 1 commit to master since this release
0fc0deb

Send Notifications to Telegram

Send workflow status notifications to Telegram with support different Git-servers (i.e. Gitea, Gogs)

Usage

Add following minimal step to the end of your workflow:

    - name: Send notification to Telegram
      uses: chapvic/telegram-notify@v1
      if: always()
      with:
        token: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Token secret
        chat: ${{ secrets.TELEGRAM_CHAT_ID }} # User ID or channel name secret
        status: ${{ job.status }} # Do not modify this line !!!

You can specify optional arguments in your workflow:

    - name: Send notification to Telegram
      uses: chapvic/telegram-notify@v1
      if: always()
      with:
        token: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Token secret
        chat: ${{ secrets.TELEGRAM_CHAT_ID }} # User ID or channel name secret
        status: ${{ job.status }} # Do not modify this line !!!
        title: Some workflow title
        message: Your notification text message
        footer: Footer message

All additional arguments must be in the form of markdown text