-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.09 KB
/
telegram-notify.yml
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
name: tg-notify
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
issues:
types: [opened, closed, reopened, edited]
issue_comment:
types: [created, edited, deleted]
discussion:
types: [created, edited, deleted]
release:
types: [published, edited, deleted]
pull_request_review_comment:
types: [created, edited, deleted]
check_run:
types: [created, completed, requested_action, rerequested]
project:
types: [created, edited, closed, reopened, deleted]
merge_group:
types:
- checks_requested
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Send message to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: | #https://help.github.com/en/actions/reference/contexts-and-expression-syntax-for-github-actions#github-context
${{ github.event_name }} commit in ${{ github.repository }} by "${{ github.actor }}". [${{github.sha}}@${{ github.ref }}]