Repository navigation
ci: run CI only on pull requests and main - #515
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 allows newer pushes to main to replace pending runs, skipping their CI and Sonar scans even when cancel-in-progress is false.
1 open issue
What changed in this PR
This PR reduces GitHub Actions usage by limiting CI to pull requests and pushes to main, instead of running on every branch push.
Changes:
- Runs CI for pull requests, including drafts, and pushes to
main. - Adds concurrency grouping to cancel outdated PR runs.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Restricts CI triggers and adds workflow 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 the Sonar scan, and is never cancelled.How to test (developer)
pull_requestrun and all checks report.mainstarts CI and the Sonar scan.🤖 Generated with Claude Code