Skip to content

The open alternative to Salesforce, designed for AI.

Fix CI concurrency: prevent test cancellation on main branch (#15188)

Félix Malfaitd76abefdeec2
diff --git a/.github/workflows/ci-breaking-changes.yaml b/.github/workflows/ci-breaking-changes.yaml
index 33040d2b722..471fd465a96 100644
--- a/.github/workflows/ci-breaking-changes.yaml
+++ b/.github/workflows/ci-breaking-changes.yaml
@@ -8,7 +8,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
MAIN_SERVER_PORT: 3000
diff --git a/.github/workflows/ci-cli.yaml b/.github/workflows/ci-cli.yaml
index dcb943f883e..021dfef2ab4 100644
--- a/.github/workflows/ci-cli.yaml
+++ b/.github/workflows/ci-cli.yaml
@@ -12,7 +12,7 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
changed-files-check:
diff --git a/.github/workflows/ci-e2e.yaml b/.github/workflows/ci-e2e.yaml
index 61f4eb24229..c07a6c02327 100644
--- a/.github/workflows/ci-e2e.yaml
+++ b/.github/workflows/ci-e2e.yaml
@@ -12,7 +12,7 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
changed-files-check:
diff --git a/.github/workflows/ci-emails.yaml b/.github/workflows/ci-emails.yaml
index f7a141e8dc5..81875c0ec95 100644
--- a/.github/workflows/ci-emails.yaml
+++ b/.github/workflows/ci-emails.yaml
@@ -12,7 +12,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
changed-files-check:
diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml
index fe109ac8df8..7dd3446ba74 100644
--- a/.github/workflows/ci-front.yaml
+++ b/.github/workflows/ci-front.yaml
@@ -12,7 +12,7 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
STORYBOOK_BUILD_CACHE_KEY_FOR_RESTORE_ACTION: storybook-build-depot-ubuntu-24.04-8-runner
diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml
index 694fdf51afa..9a23426e39d 100644
--- a/.github/workflows/ci-server.yaml
+++ b/.github/workflows/ci-server.yaml
@@ -12,7 +12,7 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
SERVER_SETUP_CACHE_KEY: server-setup
diff --git a/.github/workflows/ci-shared.yaml b/.github/workflows/ci-shared.yaml
index a55e02e9643..f5138aa9a01 100644
--- a/.github/workflows/ci-shared.yaml
+++ b/.github/workflows/ci-shared.yaml
@@ -12,7 +12,7 @@ permissions:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
changed-files-check:
diff --git a/.github/workflows/ci-test-docker-compose.yaml b/.github/workflows/ci-test-docker-compose.yaml
index 3467dd5e395..1c7683fd345 100644
--- a/.github/workflows/ci-test-docker-compose.yaml
+++ b/.github/workflows/ci-test-docker-compose.yaml
@@ -4,7 +4,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
changed-files-check:
diff --git a/.github/workflows/ci-website.yaml b/.github/workflows/ci-website.yaml
index 907f7775a3f..5c0b4a27e68 100644
--- a/.github/workflows/ci-website.yaml
+++ b/.github/workflows/ci-website.yaml
@@ -12,7 +12,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
changed-files-check:
diff --git a/.github/workflows/i18n-pull.yaml b/.github/workflows/i18n-pull.yaml
index ff8a9037cd0..d565ccb5b18 100644
--- a/.github/workflows/i18n-pull.yaml
+++ b/.github/workflows/i18n-pull.yaml
@@ -27,7 +27,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
pull_translations:
diff --git a/.github/workflows/i18n-push.yaml b/.github/workflows/i18n-push.yaml
index e4b5def4079..957806ff273 100644
--- a/.github/workflows/i18n-push.yaml
+++ b/.github/workflows/i18n-push.yaml
@@ -12,7 +12,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
extract_translations: