-
-
Notifications
You must be signed in to change notification settings - Fork 59
31 lines (27 loc) · 1.1 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
29
30
31
name: Telegram message
on:
pull_request:
branches: [ "main" ]
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 }}
🚀 *PR*: https://github.com/${{ github.repository }}
${{ github.event.workflow_run.head_commit.message }}
🛠️ *Changes*: https://github.com/${{ github.repository }}/commit/${{github.sha}}
${{ github.event.pull_request.head.sha }}