Browse Source

disable action concurrency (#1503)

* disable action concurrency

* empty commit
Robert Brennan 1 year ago
parent
commit
0bdbd8a90d

+ 9 - 1
.github/workflows/dummy-agent-test.yml

@@ -1,6 +1,14 @@
 name: Run e2e test with dummy agent
 name: Run e2e test with dummy agent
 
 
-on: [push]
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
+on:
+  push:
+    branches:
+    - main
+  pull_request:
 
 
 jobs:
 jobs:
   test:
   test:

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

@@ -1,5 +1,9 @@
 name: Publish Docker Image
 name: Publish Docker Image
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
 on:
 on:
   push:
   push:
     branches:
     branches:

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

@@ -1,5 +1,9 @@
 name: Lint
 name: Lint
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
 on:
 on:
   push:
   push:
     branches:
     branches:

+ 4 - 0
.github/workflows/run-integration-tests.yml

@@ -1,5 +1,9 @@
 name: Run Integration Tests
 name: Run Integration Tests
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
 on:
 on:
   push:
   push:
     branches:
     branches:

+ 4 - 0
.github/workflows/run-unit-tests.yml

@@ -1,5 +1,9 @@
 name: Run Unit Tests
 name: Run Unit Tests
 
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
 on:
 on:
   push:
   push:
     branches:
     branches: