Interview Prep/Git & GitHub/GitHub Actions, environments and releases in production

How do you keep Actions costs under control?

IntermediateProductionGitHub Actions, environments and releases in production
Answer

Use Linux runners (cheaper than macOS or Windows multipliers), cancel redundant runs, set timeout-minutes, restrict triggers and path filters, clean old artifacts and caches with retention settings, and self-host or use larger-runner groups only where they pay off. Review usage reports monthly.

jobs:
  test:
    timeout-minutes: 15
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub Actions, environments and releases in production