File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Notify Telegram on GitHub Push
2- description : ' Send notifications to Telegram groups (topics) and channel on push to main branch'
2+ description : ' Send notifications to Telegram channel on push to main branch'
33on :
44 push :
55 branches :
99 notify :
1010 runs-on : ubuntu-latest
1111 steps :
12- - name : Send notification to tgmShare group topic 5
13- env :
14- BOT_TOKEN : ${{ secrets.BOT_TOKEN }}
15- run : |
16- TEXT=$'📝 资源更新\n\n请查看频道获取完整资源链接\n\n📦 https://t.me/dabaziyuan'
17- curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
18- -d chat_id="-1002573762160" \
19- -d message_thread_id="5" \
20- --data-urlencode "text=${TEXT}"
21-
22- - name : Send notification to tgmShareAI group topic 2
23- env :
24- BOT_TOKEN : ${{ secrets.BOT_TOKEN }}
25- run : |
26- TEXT=$'📝 资源更新\n\n请查看频道获取完整资源链接\n\n📦 https://t.me/dabaziyuan'
27- curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
28- -d chat_id="-1003365897434" \
29- -d message_thread_id="2" \
30- --data-urlencode "text=${TEXT}"
31-
3212 - name : Send full content to Telegram channel
3313 env :
3414 BOT_TOKEN : ${{ secrets.BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments