Skip to content

chore(workflows): optimize scheduled workflow frequency for cost savings#4

Merged
bjoernbethge merged 1 commit intomainfrom
optimize/scheduled-workflows
Jan 15, 2026
Merged

chore(workflows): optimize scheduled workflow frequency for cost savings#4
bjoernbethge merged 1 commit intomainfrom
optimize/scheduled-workflows

Conversation

@bjoernbethge
Copy link
Collaborator

Summary

Optimizes GitHub Actions usage by reducing scheduled AI-powered workflow frequency from weekly/biweekly to monthly, while maintaining quality and flexibility.

Changes

Code Quality Review Workflow

  • Before: Every Sunday at 8 AM UTC (0 8 * * 0)
  • After: 1st of each month at 8 AM UTC (0 8 1 * *)
  • Savings: ~135 minutes/month (75% reduction, 4 runs → 1 run)

Dependency Audit Workflow

  • Before: 1st and 15th of each month at 10 AM UTC (0 10 1,15 * *)
  • After: 1st of each month at 10 AM UTC (0 10 1 * *)
  • Savings: ~45 minutes/month (50% reduction, 2 runs → 1 run)

Impact

  • Total Monthly Savings: ~180 minutes (~3 hours)
  • Cost Reduction: ~67% reduction in scheduled workflow runs
  • Estimated Cost Savings: $10-15/month

Flexibility Maintained

Both workflows retain workflow_dispatch triggers, allowing manual execution anytime for:

  • Urgent code quality reviews
  • Critical security updates
  • Pre-release dependency audits

Verification

✅ Cron expressions validated at crontab.guru
✅ Workflow syntax verified
✅ Manual triggers preserved

Rationale

Monthly automated reviews strike a good balance between:

  • Cost efficiency: Significant reduction in CI/CD usage
  • Code quality: Regular monthly checkpoints catch issues
  • Flexibility: On-demand runs available when needed
  • Alignment: Coordinates with docs sync (already monthly)

Part of comprehensive GitHub Actions optimization initiative (67% overall reduction target).


🤖 Generated with Claude Code

Reduce scheduled AI-powered workflows from weekly/biweekly to monthly
to optimize GitHub Actions usage and costs.

Changes:
- Code Quality Review: weekly (Sun) → monthly (1st of month)
  Saves ~135 minutes/month (~75% reduction)
- Dependency Audit: biweekly (1st & 15th) → monthly (1st only)
  Saves ~45 minutes/month (~50% reduction)

Total savings: ~180 minutes/month (~67% reduction in scheduled runs)

Both workflows retain workflow_dispatch for manual triggering when needed.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@bjoernbethge bjoernbethge merged commit 7c88c26 into main Jan 15, 2026
1 of 7 checks passed
@bjoernbethge bjoernbethge deleted the optimize/scheduled-workflows branch January 15, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant