Skip to content

πŸ™Œ OpenHands: AI-Driven Development

disable action concurrency (#1503)

Robert Brennan0bdbd8a90d8b
diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.yml
index 9c7187ce6e..baefd93ab8 100644
--- a/.github/workflows/dummy-agent-test.yml
+++ b/.github/workflows/dummy-agent-test.yml
@@ -1,6 +1,14 @@
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:
test:
diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml
index 1da2c15736..1f19a869c0 100644
--- a/.github/workflows/ghcr.yml
+++ b/.github/workflows/ghcr.yml
@@ -1,5 +1,9 @@
name: Publish Docker Image
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
on:
push:
branches:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index ea40f4cb31..0ff1f383e0 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,5 +1,9 @@
name: Lint
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
on:
push:
branches:
diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml
index 34ab3cf259..82b4a9355a 100644
--- a/.github/workflows/run-integration-tests.yml
+++ b/.github/workflows/run-integration-tests.yml
@@ -1,5 +1,9 @@
name: Run Integration Tests
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
on:
push:
branches:
diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml
index 47697da73d..6d05c4cfad 100644
--- a/.github/workflows/run-unit-tests.yml
+++ b/.github/workflows/run-unit-tests.yml
@@ -1,5 +1,9 @@
name: Run Unit Tests
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
on:
push:
branches: