这是indexloc提供的服务,不要输入任何密码
Skip to content

Reusable github Actions for sending Telegram notifications on PR events

Notifications You must be signed in to change notification settings

domengabrovsek/github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

github-actions 🤖

GitHub Actions that I reuse in other repos to send messages regarding updates to my Telegram bot. 📱

Setup 🔧

Add TELEGRAM_API_URL secret to this repository (Settings → Secrets → Actions).

Workflows 🚀

Send Telegram Message 💬

Sends a custom message to Telegram.

jobs:
  notify:
    uses: domengabrovsek/github-actions/.github/workflows/send-telegram-message.yml@master
    with:
      message: "Your message here"

PR Opened Notification 🎉

Sends a notification when a PR is opened.

jobs:
  pr-opened:
    uses: domengabrovsek/github-actions/.github/workflows/pr-opened.yml@master

PR Updated Notification 🔄

Sends a notification when changes are pushed to a PR.

jobs:
  pr-updated:
    uses: domengabrovsek/github-actions/.github/workflows/pr-updated.yml@master

PR Merged Notification ✅

Sends a notification when a PR is merged.

jobs:
  pr-merged:
    uses: domengabrovsek/github-actions/.github/workflows/pr-merged.yml@master

Example: Full PR Notifications 📋

name: 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

About

Reusable github Actions for sending Telegram notifications on PR events

Topics

Resources

Stars

Watchers

Forks