Repository: Naruno/Naruno (language: python)

Issue:
github: Adding concurrency for workflows



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml
index 46efe20b..ca6af7d9 100644
--- a/.github/workflows/builds.yml
+++ b/.github/workflows/builds.yml
@@ -26,6 +26,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build-cli-linux:
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml
index 07fd0a81..8ffa5fcc 100644
--- a/.github/workflows/codecov.yml
+++ b/.github/workflows/codecov.yml
@@ -21,6 +21,9 @@ on:
       - 'requirements/**'
       - 'tests/**'
       - 'auto_builders/**'      
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   run:
     runs-on: ${{ matrix.os }}
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index b41b33a5..4e5b4a75 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -31,6 +31,9 @@ on:
   schedule:
     - cron: '22 14 * * 5'
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   analyze:
     name: Analyze
diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml
index e75fca5a..176b1aea 100644
--- a/.github/workflows/dependency-review.yml
+++ b/.github/workflows/dependency-review.yml
@@ -16,6 +16,9 @@ on:
 permissions:
   contents: read
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   dependency-review:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/deploys.yml b/.github/workflows/deploys.yml
index 256d5d92..d3e93ff2 100644
--- a/.github/workflows/deploys.yml
+++ b/.github/workflows/deploys.yml
@@ -4,6 +4,9 @@ on:
   release:
     types: [published]
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   deploy-pypi:
 
diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml
index 4415da83..b797e30e 100644
--- a/.github/workflows/devskim.yml
+++ b/.github/workflows/devskim.yml
@@ -25,6 +25,9 @@ on:
   schedule:
     - cron: '43 6 * * 1'
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   lint:
     name: DevSkim
diff --git a/.github/workflows/gource.yml b/.github/workflows/gource.yml
index 7253a7ed..5a5ddaa8 100644
--- a/.github/workflows/gource.yml
+++ b/.github/workflows/gource.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   gource:
     runs-on: ubuntu-latest
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 3df5e276..fd9db04d 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -5,6 +5,9 @@ on:
   pull_request_target:
     types: [opened, edited]
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   labeler:
diff --git a/.github/workflows/ossar.yml b/.github/workflows/ossar.yml
index d7e43f97..004e1906 100644
--- a/.github/workflows/ossar.yml
+++ b/.github/workflows/ossar.yml
@@ -31,6 +31,9 @@ on:
 permissions:
   contents: read
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   OSSAR-Scan:
     # OSSAR runs on windows-latest.


Test patch:
diff --git a/.github/workflows/docker_stability_test_10_3.yml b/.github/workflows/docker_stability_test_10_3.yml
index 31936f5c..428dad46 100644
--- a/.github/workflows/docker_stability_test_10_3.yml
+++ b/.github/workflows/docker_stability_test_10_3.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_3_1.yml b/.github/workflows/docker_stability_test_3_1.yml
index bd69c5df..77e838a7 100644
--- a/.github/workflows/docker_stability_test_3_1.yml
+++ b/.github/workflows/docker_stability_test_3_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_4_1.yml b/.github/workflows/docker_stability_test_4_1.yml
index b6ff95fc..3e31e377 100644
--- a/.github/workflows/docker_stability_test_4_1.yml
+++ b/.github/workflows/docker_stability_test_4_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_5_1.yml b/.github/workflows/docker_stability_test_5_1.yml
index 750d2761..2845513f 100644
--- a/.github/workflows/docker_stability_test_5_1.yml
+++ b/.github/workflows/docker_stability_test_5_1.yml
@@ -5,6 +5,9 @@ on:
       types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_5_2.yml b/.github/workflows/docker_stability_test_5_2.yml
index 5ee0d031..6eb6bc92 100644
--- a/.github/workflows/docker_stability_test_5_2.yml
+++ b/.github/workflows/docker_stability_test_5_2.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_6_1.yml b/.github/workflows/docker_stability_test_6_1.yml
index b2ca7c4d..2162c3b6 100644
--- a/.github/workflows/docker_stability_test_6_1.yml
+++ b/.github/workflows/docker_stability_test_6_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_6_2.yml b/.github/workflows/docker_stability_test_6_2.yml
index 3cca2213..a57fb13c 100644
--- a/.github/workflows/docker_stability_test_6_2.yml
+++ b/.github/workflows/docker_stability_test_6_2.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_7_1.yml b/.github/workflows/docker_stability_test_7_1.yml
index 2ac7fa4c..af12bd0d 100644
--- a/.github/workflows/docker_stability_test_7_1.yml
+++ b/.github/workflows/docker_stability_test_7_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/docker_stability_test_7_2.yml b/.github/workflows/docker_stability_test_7_2.yml
index 1e82fe20..cad764e2 100644
--- a/.github/workflows/docker_stability_test_7_2.yml
+++ b/.github/workflows/docker_stability_test_7_2.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_10_3.yml b/.github/workflows/local_stability_test_10_3.yml
index 0498ad33..f84095d2 100644
--- a/.github/workflows/local_stability_test_10_3.yml
+++ b/.github/workflows/local_stability_test_10_3.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_3_1.yml b/.github/workflows/local_stability_test_3_1.yml
index cd88a8a4..18ddbaf2 100644
--- a/.github/workflows/local_stability_test_3_1.yml
+++ b/.github/workflows/local_stability_test_3_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_4_1.yml b/.github/workflows/local_stability_test_4_1.yml
index e6575b0d..7fd42a99 100644
--- a/.github/workflows/local_stability_test_4_1.yml
+++ b/.github/workflows/local_stability_test_4_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_5_1.yml b/.github/workflows/local_stability_test_5_1.yml
index 5515a92c..31f73006 100644
--- a/.github/workflows/local_stability_test_5_1.yml
+++ b/.github/workflows/local_stability_test_5_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_5_2.yml b/.github/workflows/local_stability_test_5_2.yml
index 3cb1687e..06dada7e 100644
--- a/.github/workflows/local_stability_test_5_2.yml
+++ b/.github/workflows/local_stability_test_5_2.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_6_1.yml b/.github/workflows/local_stability_test_6_1.yml
index 462c9cb8..3662600b 100644
--- a/.github/workflows/local_stability_test_6_1.yml
+++ b/.github/workflows/local_stability_test_6_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_6_2.yml b/.github/workflows/local_stability_test_6_2.yml
index a1f8c908..8d389bc0 100644
--- a/.github/workflows/local_stability_test_6_2.yml
+++ b/.github/workflows/local_stability_test_6_2.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_7_1.yml b/.github/workflows/local_stability_test_7_1.yml
index 4c8c0e20..9362b70f 100644
--- a/.github/workflows/local_stability_test_7_1.yml
+++ b/.github/workflows/local_stability_test_7_1.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/local_stability_test_7_2.yml b/.github/workflows/local_stability_test_7_2.yml
index 06060c9e..97b3bcd7 100644
--- a/.github/workflows/local_stability_test_7_2.yml
+++ b/.github/workflows/local_stability_test_7_2.yml
@@ -5,6 +5,9 @@ on:
     types: [published]
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
 
   build1:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 2c1a6603..3cb9fe88 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -23,6 +23,9 @@ on:
     types: [published]   
   workflow_dispatch:
 
+concurrency: 
+  group: ${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   lint_with_flake8: