Repository navigation
ci: run CI only on pull requests and main - #1051
Merged
Merged
Conversation
Abtion's GitHub Actions bill grew from about $66 a month in January to about $1,000 a month in October 2026. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The shared concurrency group can cancel pending CI runs for main pushes, violating the requirement that every main push runs CI and deploys.
1 open issue
What changed in this PR
This PR reduces GitHub Actions usage by limiting CI to pull requests and pushes to main, while cancelling outdated PR runs.
Changes:
- Replaces unrestricted push triggers with pull-request and
mainpush triggers. - Adds workflow concurrency to cancel older runs for the same PR.
- Documents using draft PRs to get branch checks before review.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Narrows CI triggers and adds concurrency controls. |
Review effort: Balanced
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

CI now runs on pull requests and on pushes to
main. It no longer runs on pushes to branches that have no PR. When a new commit is pushed to a PR, the run for the older commit is cancelled.Why: Abtion's GitHub Actions bill grew from about $66 a month in January to about $1,000 a month in October. To get checks on a branch before review, open a draft PR.
Invariants
mainstill runs CI and deploys, and is never cancelled.How to test (developer)
pull_requestrun and all checks report.mainstarts CI and the deploy.🤖 Generated with Claude Code