-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.02 KB
/
notify.yml
File metadata and controls
41 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Notify
on:
push:
branches:
- main
- develop
pull_request_target:
types: [opened, reopened, closed]
issues:
types: [opened, closed, reopened]
env:
NODE_VERSION: 20
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_EVENT_PATH: ${{ github.event_path }}
jobs:
telegram:
name: Telegram Notification
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Send Telegram notification
run: node .github/scripts/telegram-notify.js