Github workflow to send Telegram Notifications #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Telegram Commit Notification | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| telegram-notification: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send Telegram Commit Notification | |
| uses: appleboy/telegram-action@master | |
| with: | |
| to: ${{ secrets.TELEGRAM_TO }} | |
| token: ${{ secrets.TELEGRAM_TOKEN }} | |
| message: | | |
| 📢 *Novo commit no repositório:* `${{ github.repository }}` | |
| 🧑 Autor: ${{ github.actor }} | |
| 📝 Mensagem: ${{ github.event.head_commit.message }} | |
| 🔗 [Ver commit](${{ github.event.head_commit.url }}) | |
| format: markdown |