Skip to content

Commit c27e133

Browse files
committed
🔧 fix: set message template if empty
1 parent 1a257e5 commit c27e133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/send-messages.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Send Reminders on Twitter and Telegram
33
on:
44
schedule:
55
# Schedule job 10 minutes before time to account for delays
6-
# Every Saturday at 11:20 AM UTC (05:00 PM IST - 10 min)
6+
# Every Saturday at 11:20 AM UTC (05:00 PM IST minus 10 min)
77
- cron: "20 11 * * SAT"
8-
# Every Saturday at 04:30 PM UTC (10:10 PM IST - 10 min)
8+
# Every Saturday at 04:30 PM UTC (10:10 PM IST minus 10 min)
99
- cron: "30 16 * * SAT"
1010
workflow_dispatch:
1111
inputs:
@@ -47,7 +47,7 @@ jobs:
4747
echo "CATCHUP_DATE=${catchup_date}" >> ${GITHUB_ENV}
4848
4949
message_template=${{ inputs.message-template }}
50-
if [ "${message_template}" = "automatic" ]; then
50+
if [ "${message_template}" = "automatic" ] || [ -z "${message_template}" ]; then
5151
message_template=$(node util/get-current-message-template.js)
5252
fi
5353
echo "MESSAGE_TEMPLATE=${message_template}" >> ${GITHUB_ENV}

0 commit comments

Comments
 (0)