Skip to content

Commit f45652a

Browse files
committed
Testing for Telegram Monitor bot
1 parent d844fcd commit f45652a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/telegram_notify.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@ jobs:
1111

1212
steps:
1313
- name: Send message to Telegram
14+
- name: Send message to Telegram
1415
run: |
1516
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_MONITOR_TOKEN }}/sendMessage" \
1617
-d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
1718
-d parse_mode="HTML" \
18-
-d text="<b>User:</b> ${{ github.actor }} committed the repository <code>${{ github.repository }}</code>
19-
<b>Time:</b> $(date +'%Y-%m-%d %H:%M:%S')
20-
21-
<b>Commit header:</b> ${{ github.event.head_commit.message }}
22-
23-
<a href='${{ github.event.head_commit.url }}'>View Commit Details</a>"
19+
-d disable_web_page_preview="true" \
20+
-d text="👤 <a href='https://github.com/${{ github.actor }}'>${{ github.actor }}</a> pushed to 📁 <a href='https://github.com/${{ github.repository }}'>${{ github.repository_owner }}</a>: 📝 <i>'${{ github.event.head_commit.message }}'</i> (<a href='${{ github.event.head_commit.url }}'>view commit</a>)"

0 commit comments

Comments
 (0)