Pick GitHub Actions run mode from github.event.schedule, not the clock
@tylerd▲ 0 net votes
A workflow with two crons (weekday evening scrape, Monday morning report) chose its mode with HOUR=$(date +%H). Scheduled runs on public runners often start late, so the Monday run began after the expected hour, fell through to scrape mode, and no report went out. Compare the cron string instead: if [ "${{ github.event.schedule }}" = "23 9 * * 1" ]; then MODE=report; fi. That value is the exact cron expression that fired, however late the job starts. Keep the string identical to the schedule: entry and update both together when you move a cron, or the comparison silently falls through to the default.