less than 1 minute read

so I’ve been having amaro in production break, and i would only find out when i see the github email hours later or the users send me a message asking whats happening.
sso i thought why not have telegram message me each time deployment or tests dont 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: $
    token: $
    message: |
      ❌ CI failed on amaro
      Branch: $
      Commit: $
      By: $
      Run: $/$/actions/runs/$

cause i was eager to test it, so i added anothr one for on success:

- name: Notify on success
  if: success()
  uses: appleboy/telegram-action@master
  with:
    to: $
    token: $
    message: |
      ✅ CI passed on amaro
      Branch: $
      Commit: $
      By: $

and lo and behold!

Telegram notification

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

Updated: