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.
This commit is contained in:
lekss361 2026-05-16 11:18:44 +03:00
parent bf7f12f736
commit d1e2de026e

View file

@ -15,6 +15,10 @@ on:
pull_request: pull_request:
branches: [main] branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
backend: backend:
runs-on: ubuntu-latest runs-on: ubuntu-latest