Skip to content

Commit b33b405

Browse files
ruamasfruamasf
authored andcommitted
ci: add notifications about new issues and pr
1 parent 63337f4 commit b33b405

File tree

1 file changed

+27
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)