From 8b6de0f1796c06e5c02b7b7c261925a2de2db5ec Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 7 Feb 2025 16:39:33 +0800 Subject: [PATCH] ci: set concurrency group for workflows It is now to costly to run the full CI, so we need to limit the number of concurrent runs to avoid blocking the queue. --- .github/workflows/ci.yml | 3 +++ .github/workflows/publish.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6249318..5bbe3895 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ on: pull_request: branches: - '**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b729f932..7f93e21c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,9 @@ on: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + jobs: release: # Use Publish environment for deployment protection -- 2.39.5