From 9fc2a288a7342e6e9714ed4b5404605826aff81b Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Thu, 14 Dec 2023 12:06:25 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20add=20github=20action=20co?= =?UTF-8?q?ncurrency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f504e88..be5de53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,9 +9,10 @@ on: branches: - main pull_request: - branches: - - main - - 'feat/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: build: