Skip to content

Commit eceb0fe

Browse files
authored
ci: add notifications about new issues (#3537)
Co-authored-by: Sehat1137 <[email protected]>
1 parent 63337f4 commit eceb0fe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Event Notifier
2+
3+
on:
4+
issues:
5+
types: [opened, labeled, reopened]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.issue.number || github.event.pull_request.number }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
issues: read
13+
14+
jobs:
15+
notify:
16+
name: "Telegram notification"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Send Telegram notification for new issue
20+
uses: sehat1137/telegram-notifier@5d130037eb80a33251f3afe8bc56447236acab77 # v1.3.0
21+
with:
22+
tg-bot-token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
23+
tg-chat-id: ${{ secrets.TELEGRAM_CHAT_ID }}
24+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)