]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci: exempt master branch workflows from getting cancelled (#6486)
authorMinsoo Cheong <redacted>
Thu, 4 Apr 2024 16:30:53 +0000 (01:30 +0900)
committerGitHub <redacted>
Thu, 4 Apr 2024 16:30:53 +0000 (18:30 +0200)
* ci: exempt master branch workflows from getting cancelled

* apply to bench.yml

.github/workflows/bench.yml
.github/workflows/build.yml
.github/workflows/code-coverage.yml
.github/workflows/docker.yml
.github/workflows/editorconfig.yml
.github/workflows/nix-ci-aarch64.yml
.github/workflows/nix-ci.yml
.github/workflows/python-check-requirements.yml
.github/workflows/python-lint.yml
.github/workflows/server.yml
.github/workflows/zig-build.yml

index 98895a8b10d64c3feca3aacf40963db3ff77c232..b974e7facead1ffec8aac265779611f72b3aa166 100644 (file)
@@ -32,7 +32,7 @@ on:
     -  cron: '04 2 * * *'
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.sha }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}-${{ github.event.inputs.sha }}
   cancel-in-progress: true
 
 jobs:
index ad25f647e3ec31e8f118e52056ea6b3ca7396298..ff7238abad76c88725b7e4eb1851b0487076c3c9 100644 (file)
@@ -16,7 +16,7 @@ on:
     paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m']
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 env:
index a1cba103b1390997e19e247e1f8a383b2b19a867..f12c558f81baed63a3e841371ba9ed7fc00aff09 100644 (file)
@@ -6,7 +6,7 @@ env:
   GGML_N_THREADS: 1
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 4c5c87efc41d532a330a4e0e81493750853a74f1..eefd87878cbc1569806403de43f63bf5c3e1c354 100644 (file)
@@ -16,7 +16,7 @@ on:
       - master
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 9f4c365f2580df92d19b6d56fad096d07df525a9..ae86e9927526521eadcef6b2ed6ecd26ef8e815b 100644 (file)
@@ -15,7 +15,7 @@ on:
       - master
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 109a793ea438722cff18769e61ee448d2520e5e3..4aa4b2379dccf20a00d965fe2d7f076f72c2ddd3 100644 (file)
@@ -18,7 +18,7 @@ on:
     paths: ['**/*.nix', 'flake.lock']
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 8b5b99c8f8e1773d141dea36b476087171beaf31..8955f38d020a60309826439a6ac7daefac9da38a 100644 (file)
@@ -9,7 +9,7 @@ on:
     types: [opened, synchronize, reopened]
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 4adb282689c2c23731c3639099c6f1a109c9ecc4..4e0374fc63d95e2443678bcf6818535d4cf24ceb 100644 (file)
@@ -17,7 +17,7 @@ on:
       - 'requirements/*.txt'
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 7fd51423198daa10e0374ca76a0eaf55109f3a1b..f4ae654959be363fe81eb28d8b29626c145f66e1 100644 (file)
@@ -3,7 +3,7 @@ name: flake8 Lint
 on: [push, pull_request]
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index ccea38e04258ad4b5f98c878e9a010aefd21b320..521cc29aea976ac37db9066c0bf005aafe8431cc 100644 (file)
@@ -23,7 +23,7 @@ on:
     -  cron: '2 4 * * *'
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs:
index 658ca8da69927a6eac02901a454555bcaa75dc61..747c35cc07a96f53233fd8da609f819758f8dcc8 100644 (file)
@@ -7,7 +7,7 @@ on:
       - master
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.ref }}
+  group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
   cancel-in-progress: true
 
 jobs: