GitHub Actions that I reuse in other repos to send messages regarding updates to my Telegram bot. π±
Add these secrets to your repository (Settings β Secrets β Actions):
TELEGRAM_API_URL- The webhook URL for your Telegram bot APITELEGRAM_CHAT_ID- Default Telegram chat ID where messages will be sent
Sends a custom message to Telegram.
jobs:
notify:
uses: domengabrovsek/github-actions/.github/workflows/send-telegram-message.yml@master
with:
message: "Your message here"
# Optional: Override default chat_id from TELEGRAM_CHAT_ID secret
# chat_id: "987654321"Sends a notification when a PR is opened.
jobs:
pr-opened:
uses: domengabrovsek/github-actions/.github/workflows/pr-opened.yml@masterSends a notification when changes are pushed to a PR.
jobs:
pr-updated:
uses: domengabrovsek/github-actions/.github/workflows/pr-updated.yml@masterSends a notification when a PR is merged.
jobs:
pr-merged:
uses: domengabrovsek/github-actions/.github/workflows/pr-merged.yml@mastername: Notifications
on:
pull_request:
types: [opened, closed, synchronize]
branches: [main, master]
jobs:
pr-opened:
if: github.event.action == 'opened'
uses: domengabrovsek/github-actions/.github/workflows/pr-opened.yml@master
pr-updated:
if: github.event.action == 'synchronize'
uses: domengabrovsek/github-actions/.github/workflows/pr-updated.yml@master
pr-merged:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
uses: domengabrovsek/github-actions/.github/workflows/pr-merged.yml@master