Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit 2736e97

Browse files
author
Sujaykumar Hublikar
authored
add notify actions
1 parent 13dca78 commit 2736e97

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/notify-issue.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: notify-new-issue
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
notify-pr:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- run: |
11+
touch msg.txt
12+
cat << EOF > msg.txt
13+
new issue #${{ github.event.issue.number }}
14+
'${{ github.event.issue.title }}'
15+
16+
action: ${{ github.event.action }}
17+
18+
repo : ${{ github.event.repository.name }}
19+
author : ${{ github.event.issue.user.login }}
20+
state: ${{ github.event.issue.state }}
21+
22+
- name: notify
23+
run: docker run --rm ghcr.io/sujaykumarh/telegram-notify:stable send "`cat msg.txt`" --token "${{ secrets.TBOT_TOKEN }}" --chatId "${{ secrets.TCHAT_ID }}"

.github/workflows/notify-pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: notify-on-pr
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
notify-pr:
8+
runs-on: ubuntu-latest
9+
steps:
10+
11+
- run: |
12+
touch msg.txt
13+
cat << EOF > msg.txt
14+
new pr #${{ github.event.pull_request.number }}
15+
'${{ github.event.pull_request.title }}'
16+
17+
repo : ${{ github.event.repository.name }}
18+
branch : ${{ github.event.pull_request.head.ref }}
19+
author : ${{ github.event.pull_request.user.login }}
20+
commits : ${{ github.event.pull_request.commits }}
21+
22+
- name: notify
23+
run: docker run --rm ghcr.io/sujaykumarh/telegram-notify:stable send "`cat msg.txt`" --token "${{ secrets.TBOT_TOKEN }}" --chatId "${{ secrets.TCHAT_ID }}"

0 commit comments

Comments
 (0)