How do you reduce GitHub Actions minutes cost on private repos?
IntermediateProductionGitHub Actions and GitLab CI in Production
Answer
Cancel redundant runs with concurrency, set timeout-minutes, use path filters, cache dependencies, skip CI for docs-only changes, avoid large matrices on every PR (run the full matrix on main/nightly), and prefer Linux runners (Windows costs 2x and macOS 10x per minute). Consider larger runners if they shorten duration enough to cost less in total, or self-hosted runners on spot instances through ARC for heavy workloads. Check the usage report in billing and find the top ten workflows by minutes.
More on GitHub Actions and GitLab CI in Production
How do you organise reusable workflows for an organisation on GitHub?IntermediateHow do you secure self-hosted runners?AdvancedHow do you design the GitHub Actions OIDC trust policy for AWS safely?AdvancedHow do you handle approvals and deployments across environments in GitHub Actions?IntermediateHow do you handle required checks when workflows use path filters or matrices?AdvancedHow do you keep GitHub Actions workflow files themselves safe from unauthorised changes?Intermediate