File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2929 description : ' Telegram Chat ID (group/channel/supergroup)'
3030 required : true
3131 TELEGRAM_MESSAGE_THREAD_ID :
32- description : ' Optional: Topic / message_thread_id for Telegram forum/topic'
33- required : false
32+ description : ' Topic / message_thread_id for Telegram forum/topic'
33+ required : true
3434
3535jobs :
3636 notify :
@@ -109,6 +109,7 @@ jobs:
109109 # Telegram notification — MarkdownV2 + no link preview
110110 # ────────────────────────────────────────────────
111111 - name : Send to Telegram
112+ if : ${{ secrets.TELEGRAM_BOT_TOKEN != "" && secrets.TELEGRAM_CHAT_ID != "" && secrets.TELEGRAM_MESSAGE_THREAD_ID != "" }}
112113 uses : Salmansha08/telegram-github-action@17c9ce6b4210d2659dca29d34028b02fa29d70ad # or newer tag if available
113114 with :
114115 to : ${{ secrets.TELEGRAM_CHAT_ID }}
@@ -120,4 +121,5 @@ jobs:
120121 parse_mode : MarkdownV2
121122 disable_web_page_preview : true
122123 # Only needed for topic-enabled supergroups/channels
123- message_thread_id : ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID || "" }}
124+ message_thread_id : ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}
125+ continue-on-error : true
You can’t perform that action at this time.
0 commit comments