Skip to content

Commit d386343

Browse files
authored
telegram bot update
1 parent 7547875 commit d386343

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/webhook.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: GitHub Release to Telegram
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
send-to-telegram:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Set up PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: '8.0'
19+
20+
- name: Install dependencies
21+
run: |
22+
composer install
23+
24+
- name: Send release info to Telegram
25+
env:
26+
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
27+
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
28+
GITHUB_REPO_OWNER: ${{ secrets.REPO_OWNER }}
29+
GITHUB_REPO_NAME: ${{ secrets.REPO_NAME }}
30+
run: |
31+
php webhook.php

0 commit comments

Comments
 (0)