Skip to content

Commit

Permalink
enhance: [skip-e2e] auto cancel stale workflows (#29145)
Browse files Browse the repository at this point in the history
/kind improvement

Signed-off-by: longjiquan <[email protected]>
  • Loading branch information
longjiquan authored Dec 14, 2023
1 parent 9407be6 commit f79c614
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/code-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-gpu-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-krte-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-test-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f79c614

Please sign in to comment.