Back to blog
NO.
035
DATE
READ
~8 min
KIND
Notes
STATUS
Reviewed

TAGS: Architecture Blogging

GitHub Actions Minutes Ran Out: Deploy Blocked

A private blog's deploy was rejected before it started. Real billing data separates gross usage, discounts and charges, with a checklist to run.

On October 13, a private blog deployed to Cloudflare Workers did not update after a commit. The GitHub Actions Deploy job failed a few seconds after it started, before dependencies were installed or the build began. The run page showed this message:

recent account payments have failed or your spending limit needs to be increased

The message points in two directions: a payment problem or a spending limit. On its own it does not show that the account is in arrears, and it says nothing about whether the site code was at fault.

Next came the Billing page. The account's free Actions minutes for the month were 2,000 / 2,000, the Actions budget was $0, and stop usage when the budget is reached was on. No payment method was configured on the account. The failure happened at GitHub's job scheduling and billing boundary; the build never had a chance to run.

Account and repository names are omitted below. The billing figures and workflow types are kept as they were. Rules and prices follow GitHub's official documentation as checked on 2026-10-13.

$16.44 of usage is not $16.44 owed

The billing overview showed two figures side by side:

Billing fieldShown at the timeHow to read it
Current metered usage$16.44Raw amount calculated from resource usage
Current included usage$16.44Offset from included minutes and applicable discounts
Billable usage$0.00The amount actually billable at the time of viewing
Next payment due—The page showed no amount due

GitHub's usage report has three useful fields: gross_amount is the amount before discounts, discount_amount is the discount applied, and net_amount is what is actually billed after discounts. A bill cannot be judged from the first column alone.

The per-repository Gross amount also includes runs that were free to begin with. In this screenshot, a public repository showed $3.55 of raw usage, but it ran standard Ubuntu / Windows GitHub-hosted runners, which are free under the official rules. That $3.55 cannot be counted as an amount payable for the public repository, and it does not belong in the 2,000 minutes consumed by private repositories.

The question that matters is which repositories and which jobs used up the private repositories' free minutes.

One account: a cheap deployment crowded out by expensive tests

GitHub Free includes 2,000 minutes per month of standard hosted runner usage per account. Private repositories share that allowance; standard runners in public repositories do not consume it. Larger runners are billed under separate rules.

The three repositories worth comparing showed these Gross amounts:

Repository type (anonymized)Raw metered amountWhat it means for troubleshooting
Private frontend tool$10.38Check frequent, cross-platform CI first
Public development tool$3.55Standard runners are free, so the raw amount is not actual spend
Private blog$1.62Cheap on its own, but it can fail to deploy once the account's allowance runs out

The frontend tool has two groups of Safari-related tests that need a macOS environment. They are not useless tests: earlier they had caught browser differences in keyboard focus, Chinese export encoding and drag feedback. But running them in full on every ordinary commit may not buy coverage proportionate to the cost.

GitHub's current reference prices for standard runners are:

RunnerReference price per overage minute
Linux 2-core$0.006
Windows 2-core$0.010
macOS standard$0.062

The macOS price is about ten times the Linux price. GitHub rounds each job's execution minutes up, so reading a bill means separating the number of jobs, run time, platform multiplier and included minutes. The total duration shown on a workflow page cannot be converted directly into a monthly cost.

The structural problem is that non-critical tests and production deployment draw on one limited pool under the same account. The former use up the quota first, and the latter, however cheap, is blocked along with them.

Why changing the budget from $0 to $3 may not restore deploys

The Actions budget was $0 with Stop usage set to Yes. It was later changed to $3 per month, keeping the stop-usage switch. The budget applies to paid usage beyond the included minutes. It is not a top-up and not a fixed monthly subscription fee.

One more condition cannot be skipped. GitHub's documentation states that without a valid payment method, additional usage is still blocked once the included minutes are used up. Changing the budget number does not satisfy the payment condition, and the budget page alone cannot tell you whether deployment has recovered.

If a valid payment method is on file and the free allowance is fully used, $3 at the current Linux 2-core price of $0.006 per minute would in theory cover about 500 billable overage minutes. Actual coverage depends on runner types, per-job rounding and other jobs. This is a cost budget, not a guarantee of how many runs fit.

The right recovery order for this deployment failure is to check Included usage, Billable usage, Budgets and alerts and Payment information in Billing, then try a new Deploy, and finally check the page at the production URL. A saved budget is not a live site.

What changed was the test cadence, not the hosting platform

Several directions were compared during troubleshooting: upgrading to GitHub Pro, moving the blog build to Cloudflare, self-hosting a runner on a server, or making the private repositories public. What changed first was the trigger rules that caused the quota pressure.

In the private frontend tool, the Safari-related tests were changed to run manually, before important releases; ordinary changes keep running the cheaper regular checks. Commits that only change documentation no longer trigger the whole CI either. In the repository's operations log, the first CI run after the change shows the Safari job skipped and the other tests running as usual.

The blog's deployment workflow did not switch platforms because of this bill. It already builds on Ubuntu and deploys to Cloudflare, and it also generates share images and verifies production routes. Replacing the platform that hosts the site would not necessarily fix the GitHub account's excessive macOS test usage.

Keeping the repositories private is also a deliberate constraint: the core code is not meant to be made public for now. So although standard Actions runs in public repositories are free, the source is not going public to save minutes. Moving private repositories between accounts would add permission, secret and maintenance burden, so it is not the first fix.

Which step is worth optimizing on cost?

The decision breaks into three kinds of cost.

The first is marginal cost. Once the free allowance is used up, one more 10-minute Linux build costs about $0.06 at current prices; a macOS job of the same length costs about $0.62. Cutting unnecessary macOS runs does more than cutting the blog's publishing frequency.

The second is opportunity cost. Besides the list price, a platform migration means adapting the build environment, verifying secret permissions, restoring scheduled jobs and preparing a rollback path. Spending several hours rebuilding the deployment pipeline to avoid overage charges that may be a few dollars a month needs a stated payback period.

The third is failure cost. Deleting the Safari tests would save money but lose the cross-browser regression signal. Running them weekly, manually or before releases keeps the ability to detect problems while reducing low-value repeat runs.

The current choice is therefore to keep the repositories private and the existing deployment architecture, run CI in tiers by risk, set a small paid budget for occasional overage, and keep watching real usage. Whether to buy a higher plan waits for data from one full billing cycle under the new run cadence.

If you hit the same error

Check in this order:

  1. In GitHub's Billing & licensing → Usage → Actions, see whether the free minutes are used up, rather than looking only at the Gross amount on the front page.
  2. In Budgets and alerts, check the Actions budget amount, its scope and whether Stop usage is on. Several overlapping budgets can limit runs together.
  3. In Payment information, check for a valid payment method. With the free allowance used up and no payment method, setting the budget to a positive number is not enough.
  4. Break usage down by private repository and runner type, paying particular attention to macOS, Windows, frequent scheduled jobs and the multiple jobs one commit triggers.
  5. After adjusting the triggers, actually run a necessary workflow once. Go by the build, deploy and production request results, not by the settings having been saved.

Boundaries

  • The billing screenshot showed $0 of billable usage at the time of checking. That does not mean no charge will arise over the whole month, and it does not support any inference about whether the payment method or account status changed later.
  • "After changing the test triggers, usage stays within 2,000 minutes over the long term" is still a budget forecast and has not been verified over the next full billing cycle.
  • Runner prices, plan allowances and budget rules may change; the GitHub documentation linked at the end is authoritative.
  • The raw bill's repository names, private workflow paths and credential information are not published.

Writing note: GPT-6 drafted it from billing records, repo and GitHub docs; Claude Sonnet 5.5 translated it.

Comments →

CC BY-NC-SA 4.0

Comments

Comments are powered by GitHub Discussions. Sign in with GitHub to comment. Open the matching Discussion