Skip to content

Commit

Permalink
🔧 fix: set message template if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
KartikSoneji committed Jul 15, 2023
1 parent 1a257e5 commit c27e133
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/send-messages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Send Reminders on Twitter and Telegram
on:
schedule:
# Schedule job 10 minutes before time to account for delays
# Every Saturday at 11:20 AM UTC (05:00 PM IST - 10 min)
# Every Saturday at 11:20 AM UTC (05:00 PM IST minus 10 min)
- cron: "20 11 * * SAT"
# Every Saturday at 04:30 PM UTC (10:10 PM IST - 10 min)
# Every Saturday at 04:30 PM UTC (10:10 PM IST minus 10 min)
- cron: "30 16 * * SAT"
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
echo "CATCHUP_DATE=${catchup_date}" >> ${GITHUB_ENV}
message_template=${{ inputs.message-template }}
if [ "${message_template}" = "automatic" ]; then
if [ "${message_template}" = "automatic" ] || [ -z "${message_template}" ]; then
message_template=$(node util/get-current-message-template.js)
fi
echo "MESSAGE_TEMPLATE=${message_template}" >> ${GITHUB_ENV}
Expand Down

0 comments on commit c27e133

Please sign in to comment.