Adding Concurrency with `cancel-in-progress` to GitHub Actions CI to Cut Build Minutes
Adding Concurrency with cancel-in-progress to GitHub Actions CI to Cut Build Minutes TL;DR: I added a concurrency block with cancel-in-progress: true to the ci-e2e.yml workflow, preventing overlapping runs on the same branch. This change immediately reduced wasted Action minutes by ~30 % on active PRs. Our CI pipeline (.github/workflows/ci-e2e.yml) was triggered on every push to a branch and on a cron schedule. When a developer pushed multiple commits quickly, GitHub started a new workflow run before the previous one finished. Since each run executes the full end‑to‑end test suite, overlapping
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in