enhance: [skip-e2e] auto cancel stale workflows (#29145)

/kind improvement

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
This commit is contained in:
Jiquan Long 2023-12-14 11:30:38 +08:00 committed by GitHub
parent 9407be6eb2
commit f79c6146bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 0 deletions

View File

@ -27,6 +27,10 @@ on:
- .golangci.yml
- rules.go
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ubuntu:
name: Code Checker AMD64 Ubuntu 20.04

View File

@ -24,6 +24,10 @@ on:
- go.mod
- go.sum
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
mac:
name: Code Checker MacOS 12

View File

@ -35,6 +35,10 @@ on:
- '!**.md'
- '!build/ci/jenkins/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
Build:
name: Build and test AMD64 Ubuntu ${{ matrix.ubuntu }}

View File

@ -16,6 +16,10 @@ on:
- '.github/workflows/publish-builder.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-builder:
name: ${{ matrix.arch }} ${{ matrix.os }}

View File

@ -16,6 +16,10 @@ on:
- '.github/workflows/publish-gpu-builder.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-gpu-builder:
name: ${{ matrix.arch }} ${{ matrix.os }}

View File

@ -17,6 +17,10 @@ on:
- '.github/workflows/publish-krte-images.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-krte-images:
name: KRTE

View File

@ -18,6 +18,10 @@ on:
- '.github/workflows/publish-test-images.yaml'
- '!**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
publish-pytest-images:
name: PyTest