From 7c1b2e01fec93f8fb736e13b9d438947264c2a8d Mon Sep 17 00:00:00 2001 From: Steve Repsher Date: Mon, 6 Feb 2023 21:12:26 +0000 Subject: [PATCH] Add concurrency rules to cancel workflows in progress --- .github/workflows/ci.yaml | 4 ++++ .github/workflows/dedupe.yaml | 4 ++++ 2 files changed, 8 insertions(+) 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