From d1e2de026e1aa92ea8a71eb47d64b3532052e5b8 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Sat, 16 May 2026 11:18:44 +0300 Subject: [PATCH] fix(ci): add concurrency group to cancel stale runs on same branch Prevents double-run on PR (push + pull_request events), eliminates cache contention, and frees runner capacity from queued feature-branch jobs. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64d59fa4..a2c3ed7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,10 @@ on: pull_request: branches: [main] +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: backend: runs-on: ubuntu-latest