Skip to content

Commit 0529cfb

Browse files
authored
chore: add notify about new PR and Issue (#157)
Co-authored-by: Sehat1137 <[email protected]>
1 parent eccd4a2 commit 0529cfb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/relator.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Relator
2+
3+
on:
4+
issues:
5+
types: [opened, reopened]
6+
pull_request_target:
7+
types: [opened, reopened]
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: reagento/relator@983edccef69ef9a25b97552daaeaf0f183b470f4 # v1.5.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)