Skip to content

Commit 7dda1b7

Browse files
authored
ci: exempt master branch workflows from getting cancelled (ggml-org#6486)
* ci: exempt master branch workflows from getting cancelled * apply to bench.yml
1 parent c666ba2 commit 7dda1b7

11 files changed

+11
-11
lines changed

.github/workflows/bench.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ on:
3232
- cron: '04 2 * * *'
3333

3434
concurrency:
35-
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.sha }}
35+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}-${{ github.event.inputs.sha }}
3636
cancel-in-progress: true
3737

3838
jobs:

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m']
1717

1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
19+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
2020
cancel-in-progress: true
2121

2222
env:

.github/workflows/code-coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env:
66
GGML_N_THREADS: 1
77

88
concurrency:
9-
group: ${{ github.workflow }}-${{ github.ref }}
9+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
1010
cancel-in-progress: true
1111

1212
jobs:

.github/workflows/docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- master
1717

1818
concurrency:
19-
group: ${{ github.workflow }}-${{ github.ref }}
19+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
2020
cancel-in-progress: true
2121

2222
jobs:

.github/workflows/editorconfig.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- master
1616

1717
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
18+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
1919
cancel-in-progress: true
2020

2121
jobs:

.github/workflows/nix-ci-aarch64.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
paths: ['**/*.nix', 'flake.lock']
1919

2020
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref }}
21+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
2222
cancel-in-progress: true
2323

2424
jobs:

.github/workflows/nix-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
types: [opened, synchronize, reopened]
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
12+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
1313
cancel-in-progress: true
1414

1515
jobs:

.github/workflows/python-check-requirements.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- 'requirements/*.txt'
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}
20+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
2121
cancel-in-progress: true
2222

2323
jobs:

.github/workflows/python-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: flake8 Lint
33
on: [push, pull_request]
44

55
concurrency:
6-
group: ${{ github.workflow }}-${{ github.ref }}
6+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
77
cancel-in-progress: true
88

99
jobs:

.github/workflows/server.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
- cron: '2 4 * * *'
2424

2525
concurrency:
26-
group: ${{ github.workflow }}-${{ github.ref }}
26+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
2727
cancel-in-progress: true
2828

2929
jobs:

.github/workflows/zig-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- master
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
1111
cancel-in-progress: true
1212

1313
jobs:

0 commit comments

Comments
 (0)