@@ -2,37 +2,36 @@ name: Telegram Notifications
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [ main ]
76 pull_request :
87
98jobs :
109 notify :
1110 runs-on : ubuntu-latest
12- environment : env
1311 steps :
1412 - name : Push Notification
1513 if : github.event_name == 'push'
1614 uses : appleboy/telegram-action@master
1715 with :
18- to : ${{ secrets.TELEGRAM_CHAT_ID }}
1916 token : ${{ secrets.TELEGRAM_BOT_TOKEN }}
17+ to : ${{ secrets.TELEGRAM_CHAT_ID }}
18+ format : markdown
2019 message : |
21- 📌 ** Push Event**
22- Repository: ${{ github.repository }}
23- Branch: ${{ github.ref }}
24- Author: ${{ github.actor }}
20+ 📌 *Push Event*
21+ Repository: [ ${{ github.repository }}](https://github.com/${{ github.repository }})
22+ Branch: ` ${{ github.ref }}`
23+ Author: ` ${{ github.actor }}`
2524
2625 - name : Pull Request Notification
2726 if : github.event_name == 'pull_request'
2827 uses : appleboy/telegram-action@master
2928 with :
30- to : ${{ secrets.TELEGRAM_CHAT_ID }}
3129 token : ${{ secrets.TELEGRAM_BOT_TOKEN }}
30+ to : ${{ secrets.TELEGRAM_CHAT_ID }}
31+ format : markdown
3232 message : |
33- 🔀 **Pull Request Event**
34- Repository: ${{ github.repository }}
35- Action: ${{ github.event.action }}
36- PR: #${{ github.event.number }} - ${{ github.event.pull_request.title }}
37- Author: ${{ github.event.pull_request.user.login }}
38- URL: ${{ github.event.pull_request.html_url }}
33+ 🔀 *Pull Request Event*
34+ Repository: [${{ github.repository }}](https://github.com/${{ github.repository }})
35+ Action: `${{ github.event.action }}`
36+ PR: [#${{ github.event.number }} - ${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
37+ Author: `${{ github.event.pull_request.user.login }}`
0 commit comments