Command typeschedule
TemplateprReview
Frequencydaily 9am
Cron expression0 9 * * *
Confirm the cron expression in your scheduler's timezone.
Command:
/schedule daily 9am "Review all open pull requests"
Derived cron (daily 9am):
0 9 * * *
GitHub Actions workflow:
name: Claude Code Automated Task
on:
schedule:
- cron: '0 9 * * *'
workflow_dispatch:
jobs:
claude-task:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Claude Code
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
task: "Review all open pull requests"
allowed_tools: "read_file,write_file,bash"