Add workflow concurrency controls to cancel in-progress runs

Prevents multiple workflow runs from the same PR/branch from running simultaneously, saving runner resources and providing faster feedback.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code 2025-07-07 20:00:59 -04:00
parent 7cea33f56d
commit ab5cddeec5
3 changed files with 12 additions and 0 deletions

View file

@ -6,6 +6,10 @@ on:
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: self-hosted

View file

@ -4,6 +4,10 @@ on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
code-quality:
runs-on: self-hosted

View file

@ -6,6 +6,10 @@ on:
- 'package.json'
- 'package-lock.json'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
dependency-review:
runs-on: self-hosted