Browse Source

Add concurency limits on GHA workflows. (#11656)

Austin S. Hemmelgarn 3 years ago
parent
commit
a13dba6a30

+ 3 - 0
.github/workflows/build-and-install.yml

@@ -7,6 +7,9 @@ on:
   pull_request: null
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: builder-${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   static-build:
     name: Static Build

+ 3 - 0
.github/workflows/checks.yml

@@ -7,6 +7,9 @@ on:
   pull_request: null
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: checks-${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   checksum-checks:
     name: Checksums

+ 3 - 0
.github/workflows/coverity.yml

@@ -10,6 +10,9 @@ on:
       - coverity-scan.sh
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: coverity-${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   coverity:
     if: github.repository == 'netdata/netdata'

+ 3 - 0
.github/workflows/docker.yml

@@ -13,6 +13,9 @@ on:
         required: true
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: docker-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
 jobs:
   docker-test:
     name: Docker Runtime Test

+ 3 - 0
.github/workflows/labeler.yml

@@ -6,6 +6,9 @@ on:
     - cron: '*/5 * * * *'
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: labeller
+  cancel-in-progress: true
 jobs:
   labeler:
     runs-on: ubuntu-latest

+ 3 - 0
.github/workflows/packaging.yml

@@ -17,6 +17,9 @@ on:
         required: false
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: packages-${{ github.ref }}-${{ github.event_name }}
+  cancel-in-progress: true
 jobs:
   build:
     name: Build

+ 3 - 0
.github/workflows/review.yml

@@ -5,6 +5,9 @@ on:
   pull_request: null
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: review-${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   prep-review:
     name: Prepare Review Jobs

+ 3 - 0
.github/workflows/tests.yml

@@ -16,6 +16,9 @@ on:
       - '**.h'
 env:
   DO_NOT_TRACK: 1
+concurrency:
+  group: tests-${{ github.ref }}
+  cancel-in-progress: true
 jobs:
   unit-tests-legacy:
     name: Unit Tests (legacy)

+ 4 - 0
.github/workflows/updater.yml

@@ -11,6 +11,10 @@ on:
 env:
   DO_NOT_TRACK: 1
 
+concurrency:
+  group: updater-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   source-build:
     name: Install, Build & Update