What GitHub Actions Actually Costs When It’s “Free”
Описание и применение
Команды понимают, как рассчитываются минуты в GitHub Actions, и оптимизируют пайплайны, чтобы избежать неожиданных расходов.
Задача
Teams unknowingly exceed free minute limits on GitHub Actions, leading to unexpected overage charges.
Результат
Teams can prevent unexpected overage charges by accurately accounting for minute usage, understanding platform multipliers, and optimizing workflows.
Рабочий процесс
- 1. Review GitHub Actions free tier limits for the chosen plan.
- 2. Identify all jobs, matrix dimensions, and runner platforms in the workflow YAML.
- 3. Calculate minute usage: multiply job duration by platform multiplier (Linux 1×, Windows 2×, macOS 10×).
- 4. Round each job up to the next full minute.
- 5. Sum minutes across all jobs, including re-runs and matrix jobs.
- 6. Compare total to the plan’s monthly allowance.
- 7. Optimize: reduce matrix size, split long jobs, use self-hosted runners for expensive platforms, or upgrade plan if needed.
- 8. Monitor usage via GitHub’s billing dashboard and set alerts.
Доказательства
GitHub bills Linux jobs at a 1x multiplier, Windows at 2x, and macOS at 10x against the same pool.
A 10-minute macOS build doesn’t cost 10 minutes of your allowance — it costs 100.
- Дата записи: 2026-09-22T04:15:43.462Z