How do you trigger a workflow manually or on a schedule?
⚡
Quick Answer
workflow_dispatch adds a manual Run button (with inputs); schedule runs on cron.
Detailed Answer
workflow_dispatch is ideal for on-demand deploys or maintenance jobs and can accept typed inputs. schedule uses POSIX cron in UTC (e.g. '0 6 * * *'). Combine with paths: filters on push to skip heavy jobs for docs-only changes.
Code Example
on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'💡
Interview Tip
Remember schedule cron is UTC.
github-actionstriggerscron