This repository was archived by the owner on Oct 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 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 }}"
Original file line number Diff line number Diff line change 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 }}"
You can’t perform that action at this time.
0 commit comments