mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
27
.github/workflows/tg.yaml
vendored
Normal file
27
.github/workflows/tg.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Telegram Notification
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
pull_request:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
notify:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Send Telegram notification
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
with:
|
||||||
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
message: |
|
||||||
|
${{ github.event_name == 'issues' && '新 Issue 已创建' || '新 Pull Request 已提交' }}
|
||||||
|
|
||||||
|
${{ github.event.issue.title || github.event.pull_request.title }}
|
||||||
|
|
||||||
|
作者: ${{ github.event.issue.user.login || github.event.pull_request.user.login }}
|
||||||
|
|
||||||
|
链接: ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
|
||||||
|
|
||||||
|
仓库: ${{ github.repository }}
|
Reference in New Issue
Block a user