@@ -60,17 +60,18 @@ jobs:
6060 - name : 📬 Telegram Notification – Deployment
6161 run : |
6262 NOW=$(date '+%Y-%m-%d %H:%M:%S')
63- curl -s -X POST https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage \
64- -d chat_id="${TELEGRAM_CHAT_ID}" \
65- -d parse_mode="Markdown" \
66- -d disable_web_page_preview=true \
67- -d text="➠ Deployment Completed
63+ TEXT="➠ Deployment Completed
6864➠ Name : ${{ github.actor }}
6965➠ Repository : [${{ github.repository }}](https://github.com/${{ github.repository }})
7066➠ Stars : ${{ steps.repo_info.outputs.STARS }} | Forks: ${{ steps.repo_info.outputs.FORKS }}
7167➠ Time : $NOW (Asia/Dhaka)
7268
7369[🔗 View Documentation](${{ steps.deployment.outputs.page_url }})"
70+ curl -s -X POST https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage \
71+ -d chat_id="${TELEGRAM_CHAT_ID}" \
72+ -d parse_mode="Markdown" \
73+ -d disable_web_page_preview=true \
74+ -d text="$TEXT"
7475
7576 notify_issue :
7677 if : github.event_name == 'issues'
@@ -79,17 +80,18 @@ jobs:
7980 - name : 🐞 Telegram Notification – New Issue
8081 run : |
8182 NOW=$(date '+%Y-%m-%d %H:%M:%S')
82- curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
83- -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
84- -d parse_mode="Markdown" \
85- -d disable_web_page_preview=true \
86- -d text="➠ New Issue Created
83+ TEXT="➠ New Issue Created
8784➠ Name : ${{ github.actor }}
8885➠ Repository : [${{ github.repository }}](https://github.com/${{ github.repository }})
8986➠ Title : _${{ github.event.issue.title }}_
9087➠ Time : $NOW (Asia/Dhaka)
9188
9289[🔗 View Issue](${{ github.event.issue.html_url }})"
90+ curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
91+ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
92+ -d parse_mode="Markdown" \
93+ -d disable_web_page_preview=true \
94+ -d text="$TEXT"
9395
9496 notify_issue_comment :
9597 if : github.event_name == 'issue_comment'
@@ -100,18 +102,19 @@ jobs:
100102 NOW=$(date '+%Y-%m-%d %H:%M:%S')
101103 ISSUE_TITLE="${{ github.event.issue.title }}"
102104 COMMENT_BODY=$(echo "${{ github.event.comment.body }}" | head -c 200)
103- curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
104- -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
105- -d parse_mode="Markdown" \
106- -d disable_web_page_preview=true \
107- -d text="➠ New Comment on Issue
105+ TEXT="➠ New Comment on Issue
108106➠ Name : ${{ github.actor }}
109107➠ Repository : [${{ github.repository }}](https://github.com/${{ github.repository }})
110108➠ Issue : _${ISSUE_TITLE}_
111109➠ Comment : _${COMMENT_BODY}..._
112110➠ Time : $NOW (Asia/Dhaka)
113111
114112[🔗 View Comment](${{ github.event.comment.html_url }})"
113+ curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
114+ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
115+ -d parse_mode="Markdown" \
116+ -d disable_web_page_preview=true \
117+ -d text="$TEXT"
115118
116119 notify_star :
117120 if : github.event_name == 'watch'
@@ -120,16 +123,17 @@ jobs:
120123 - name : ⭐ Telegram Notification – New Star
121124 run : |
122125 NOW=$(date '+%Y-%m-%d %H:%M:%S')
123- curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
124- -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
125- -d parse_mode="Markdown" \
126- -d disable_web_page_preview=true \
127- -d text="➠ New Star!
126+ TEXT="➠ New Star!
128127➠ Name : ${{ github.actor }}
129128➠ Repository : [${{ github.repository }}](https://github.com/${{ github.repository }})
130129➠ Time : $NOW (Asia/Dhaka)
131130
132131⭐ Thank you!"
132+ curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
133+ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
134+ -d parse_mode="Markdown" \
135+ -d disable_web_page_preview=true \
136+ -d text="$TEXT"
133137
134138 notify_fork :
135139 if : github.event_name == 'fork'
@@ -138,16 +142,17 @@ jobs:
138142 - name : 🍴 Telegram Notification – New Fork
139143 run : |
140144 NOW=$(date '+%Y-%m-%d %H:%M:%S')
141- curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
142- -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
143- -d parse_mode="Markdown" \
144- -d disable_web_page_preview=true \
145- -d text="➠ New Fork!
145+ TEXT="➠ New Fork!
146146➠ Name : ${{ github.actor }}
147147➠ Repository : [${{ github.repository }}](https://github.com/${{ github.repository }})
148148➠ Time : $NOW (Asia/Dhaka)
149149
150150🍴 Happy forking!"
151+ curl -s -X POST https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage \
152+ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
153+ -d parse_mode="Markdown" \
154+ -d disable_web_page_preview=true \
155+ -d text="$TEXT"
151156
152157 notify_pull_request :
153158 if : github.event_name == 'pull_request'
0 commit comments