Set of reusable workflows to avoid code duplication
Sends a notification to a Telegram channel using its bots
1 - Create a bot (docs) and add it to the desired channel
2 - Set the repo secrets as follows:
TELEGRAM_CHAT_ID
for the chat idTELEGRAM_BOT_TOKEN
for the bot token
name: Telegram notification
on:
push:
branches:
- main
jobs:
send-telegram-notification:
uses: andrelopesmds/reusable-workflows/.github/workflows/telegram-notification.yml@main
with:
message: 'new code merged to main'
secrets: inherit