From c8442f7308350b9b62f356d7f0e832c7e8b39d27 Mon Sep 17 00:00:00 2001 From: Andrew Beltrano Date: Fri, 23 Feb 2024 17:08:51 +0000 Subject: [PATCH] Limit to 1 build per change in CI/CD using concurrency group. --- .github/workflows/cicd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 9d101e5f..180efc88 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -25,6 +25,9 @@ jobs: contents: read actions: read security-events: write + concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true uses: ./.github/workflows/build.yml with: build-types: "[ 'Debug' ]"