Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: Only run one deploy docs workflow at a time. Add comments (#3398)

mamoodi5dab07094d38
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index b4ed558a0c..dddd97a4bb 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -1,6 +1,12 @@
# Workflow that builds and deploys the documentation website
name: Deploy Docs to GitHub Pages
+# Only run one workflow of the same group at a time.
+# There can be at most one running and one pending job in a concurrency group at any time.
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
+
on:
push:
branches:
diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.yml
index 6cf4d5900c..4633837f50 100644
--- a/.github/workflows/dummy-agent-test.yml
+++ b/.github/workflows/dummy-agent-test.yml
@@ -1,6 +1,8 @@
# Workflow that uses the DummyAgent to run a simple task
name: Run E2E test with dummy agent
+# Only run one workflow of the same group at a time.
+# There can be at most one running and one pending job in a concurrency group at any time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
diff --git a/.github/workflows/ghcr.yml b/.github/workflows/ghcr.yml
index 66270d3a0e..bcade7cadc 100644
--- a/.github/workflows/ghcr.yml
+++ b/.github/workflows/ghcr.yml
@@ -1,6 +1,8 @@
# Workflow that builds, tests and then pushes the docker images to the ghcr.io repository
name: Build Publish and Test Runtime Image
+# Only run one workflow of the same group at a time.
+# There can be at most one running and one pending job in a concurrency group at any time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 98d905c6c3..37676fdede 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,6 +1,8 @@
# Workflow that runs lint on the frontend and python code
name: Lint
+# Only run one workflow of the same group at a time.
+# There can be at most one running and one pending job in a concurrency group at any time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml
index fd3b9c23e0..fb309c2749 100644
--- a/.github/workflows/run-unit-tests.yml
+++ b/.github/workflows/run-unit-tests.yml
@@ -1,6 +1,8 @@
# Workflow that runs frontend and python unit tests
name: Run Unit Tests
+# Only run one workflow of the same group at a time.
+# There can be at most one running and one pending job in a concurrency group at any time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}