[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 <wangli858794774@gmail.com>
This commit is contained in:
Li Wang
2025-12-11 19:54:52 +08:00
committed by GitHub
parent c30b51e764
commit 3349f61769

View File

@@ -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