[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:
4
.github/workflows/release_code_and_wheel.yml
vendored
4
.github/workflows/release_code_and_wheel.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user