From 3349f61769e9f0238c35cd4bcdcb9bea758f1055 Mon Sep 17 00:00:00 2001 From: Li Wang Date: Thu, 11 Dec 2025 19:54:52 +0800 Subject: [PATCH] [CI] Cancel whl build when submitting a new commit (#4925) ### What this PR does / why we need it? From a resource-saving perspective, canceling old jobs when submitting new commits can reduce github_hosted in queue Signed-off-by: wangli --- .github/workflows/release_code_and_wheel.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release_code_and_wheel.yml b/.github/workflows/release_code_and_wheel.yml index e58beeee..961d440b 100644 --- a/.github/workflows/release_code_and_wheel.yml +++ b/.github/workflows/release_code_and_wheel.yml @@ -35,6 +35,10 @@ on: tags: - 'v*' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build_and_release_code: name: release code