so I’ve been having amaro break in production due to the architectural changes I’ve been making, and i would only find out when i see the github email hours later or the users send me a message asking whats happening.
so i thought why not have telegram message me each time deployment or tests don’t pass. With a little googling, turns out appleboy has a telegram GitHub action
so i got to work with BotFather, and got a new bot up and running. Added secrets to github and modified my yaml file to include this:
- name: Notify on failure
if: failure()
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: |
❌ CI failed on amaro
Branch: ${{ github.ref_name }}
Commit: ${{ github.event.head_commit.message }}
By: ${{ github.actor }}
Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
cause i was eager to test it, so i added another one for on success:
- name: Notify on success
if: success()
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
message: |
✅ CI passed on amaro
Branch: ${{ github.ref_name }}
Commit: ${{ github.event.head_commit.message }}
By: ${{ github.actor }}
and lo and behold!

so handy, this was all up and running within 10 minutes. Definitely worth adding to the pipeline!