Bladeren bron

chore: Add concurrency settings to CI workflows

David Höck 10 maanden geleden
bovenliggende
commit
d904a8bf49

+ 6 - 0
.github/workflows/build_and_test_branches.yml

@@ -5,8 +5,14 @@ on:
             - major
             - minor
             - parallel-e2e
+
+concurrency:
+    group: ${{ github.workflow }}-${{ github.ref }}
+    cancel-in-progress: true
+
 env:
     CI: true
+
 jobs:
     build:
         name: build

+ 5 - 0
.github/workflows/build_and_test_master.yml

@@ -5,6 +5,11 @@ on:
             - master
 env:
     CI: true
+
+concurrency:
+    group: ${{ github.workflow }}-${{ github.ref }}
+    cancel-in-progress: true
+
 jobs:
     build:
         name: build

+ 5 - 0
.github/workflows/build_and_test_pr.yml

@@ -7,6 +7,11 @@ on:
             - minor
 env:
     CI: true
+
+concurrency:
+    group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+    cancel-in-progress: true
+
 jobs:
     build:
         name: build

+ 6 - 0
.github/workflows/publish_and_install_branches.yml

@@ -5,9 +5,15 @@ on:
             - major
             - minor
             - parallel-e2e
+
+concurrency:
+    group: ${{ github.workflow }}-${{ github.ref }}
+    cancel-in-progress: true
+
 defaults:
     run:
         shell: bash
+
 jobs:
     publish_install:
         runs-on: ${{ matrix.os }}

+ 5 - 0
.github/workflows/publish_and_install_master.yml

@@ -6,6 +6,11 @@ on:
 defaults:
     run:
         shell: bash
+
+concurrency:
+    group: ${{ github.workflow }}-${{ github.ref }}
+    cancel-in-progress: true
+
 jobs:
     publish_install:
         runs-on: ${{ matrix.os }}

+ 5 - 0
.github/workflows/publish_and_install_pr.yml

@@ -5,6 +5,11 @@ on:
             - master
             - major
             - minor
+
+concurrency:
+    group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+    cancel-in-progress: true
+
 defaults:
     run:
         shell: bash