π OpenHands: AI-Driven Development
Cancel previous commit builds on PRs but not on main (#4314)
mamoodic3764a742245
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.ymlindex eec3d1a05b..4d9904ea46 100644--- a/.github/workflows/deploy-docs.yml+++ b/.github/workflows/deploy-docs.yml@@ -14,6 +14,11 @@ on:branches:- main+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group+concurrency:+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}+ cancel-in-progress: true+jobs:# Build the documentation websitebuild:diff --git a/.github/workflows/dummy-agent-test.yml b/.github/workflows/dummy-agent-test.ymlindex 2f9dda3254..bac3fd8bb8 100644--- a/.github/workflows/dummy-agent-test.yml+++ b/.github/workflows/dummy-agent-test.yml@@ -9,6 +9,11 @@ on:- mainpull_request:+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group+concurrency:+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}+ cancel-in-progress: true+jobs:test:runs-on: ubuntu-latestdiff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.ymlindex eed8315c38..2bced7406e 100644--- a/.github/workflows/fe-unit-tests.yml+++ b/.github/workflows/fe-unit-tests.yml@@ -12,6 +12,11 @@ on:- 'frontend/**'- '.github/workflows/fe-unit-tests.yml'+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group+concurrency:+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}+ cancel-in-progress: true+jobs:# Run frontend unit testsfe-test:diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.ymlindex 89c313cbec..d6ea63bbdf 100644--- a/.github/workflows/ghcr-build.yml+++ b/.github/workflows/ghcr-build.yml@@ -19,6 +19,11 @@ on:required: truedefault: ''+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group+concurrency:+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}+ cancel-in-progress: true+env:BASE_IMAGE_FOR_HASH_EQUIVALENCE_TEST: nikolaik/python-nodejs:python3.12-nodejs22RELEVANT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 1061a8fd95..b6a9d327d8 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -10,6 +10,11 @@ on:- mainpull_request:+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group+concurrency:+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}+ cancel-in-progress: true+jobs:# Run lint on the frontend codelint-frontend:diff --git a/.github/workflows/py-unit-tests.yml b/.github/workflows/py-unit-tests.ymlindex 8acb5cee71..a9d5eaafed 100644--- a/.github/workflows/py-unit-tests.yml+++ b/.github/workflows/py-unit-tests.yml@@ -10,6 +10,11 @@ on:- mainpull_request:+# If triggered by a PR, it will be in the same group. However, each commit on main will be in its own unique group+concurrency:+ group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }}+ cancel-in-progress: true+jobs:# Run python unit tests on macOStest-on-macos: