diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d9e4751ae8..a0a15070fd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,10 @@ env: NODE_OPTIONS: --max_old_space_size=6144 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: lint: name: Lint and check format diff --git a/.github/workflows/dedupe.yaml b/.github/workflows/dedupe.yaml index 8692e2de0e..74731dad59 100644 --- a/.github/workflows/dedupe.yaml +++ b/.github/workflows/dedupe.yaml @@ -12,6 +12,10 @@ env: permissions: contents: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: dedupe: name: Deduplicate dependencies