Skip to content

Commit 5d852f2

Browse files
chore: fix telegram creds requirements
1 parent 6710bc5 commit 5d852f2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/community-release-notifier.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ on:
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

3535
jobs:
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

0 commit comments

Comments
 (0)