-
-
Notifications
You must be signed in to change notification settings - Fork 59
28 lines (24 loc) · 1.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Telegram message
on: [push]
jobs:
build:
name: Send Telegram message
runs-on: ubuntu-latest
steps:
- name: View github environment
- run: |
echo github.event.number = ${{ github.event.number }}
echo github.event.pull_request.number = ${{ github.event.pull_request.number }}
echo github.event.issue.number = ${{ github.event.issue.number }}
- name: send telegram message on push
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: markdown
message: |
👨💻 *New PR Updates from ${{ github.actor }}*
⭐️ *Latest commit*: ${{ github.event.commits[0].message }} ${{github.event.issue.number}}
${{github.event.number}}
🚀 *PR*: https://github.com/${{ github.repository }}
🛠️ *Changes*: https://github.com/${{ github.repository }}/commit/${{github.sha}}