We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7547875 commit d386343Copy full SHA for d386343
1 file changed
.github/workflows/webhook.yml
@@ -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
31
+ php webhook.php
0 commit comments