Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Chore: keep main and dev CI runs from canceling (#14611)

shamoondddb1f901484
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 6bac2c24f..0c30f2b1c 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -8,7 +8,8 @@ on:
- 'translations**'
workflow_dispatch:
concurrency:
- group: backend-${{ github.event.pull_request.number || github.ref }}
+ # Let dev/main commits finish, PR and feature-branch runs supersede older ones
+ group: backend-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.run_id) || github.ref }}
cancel-in-progress: true
env:
DEFAULT_UV_VERSION: "0.13.x"
diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml
index 7b1c7f0ff..2a6c5a761 100644
--- a/.github/workflows/ci-docker.yml
+++ b/.github/workflows/ci-docker.yml
@@ -13,7 +13,8 @@ on:
- main
workflow_dispatch:
concurrency:
- group: docker-${{ github.event.pull_request.number || github.ref }}
+ # Let dev/main commits finish, PR and feature-branch runs supersede older ones
+ group: docker-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.run_id) || github.ref }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io
diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml
index 61c54b77f..b471dd6d5 100644
--- a/.github/workflows/ci-docs.yml
+++ b/.github/workflows/ci-docs.yml
@@ -6,7 +6,8 @@ on:
pull_request:
workflow_dispatch:
concurrency:
- group: docs-${{ github.event.pull_request.number || github.ref }}
+ # Let dev/main commits finish, PR and feature-branch runs supersede older ones
+ group: docs-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.run_id) || github.ref }}
cancel-in-progress: true
permissions:
contents: read
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index 2cead59c5..bcf40223a 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -8,7 +8,8 @@ on:
- 'translations**'
workflow_dispatch:
concurrency:
- group: frontend-${{ github.event.pull_request.number || github.ref }}
+ # Let dev/main commits finish, PR and feature-branch runs supersede older ones
+ group: frontend-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.run_id) || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml
index 0bef63437..5abeab41a 100644
--- a/.github/workflows/ci-lint.yml
+++ b/.github/workflows/ci-lint.yml
@@ -7,7 +7,8 @@ on:
branches-ignore:
- 'translations**'
concurrency:
- group: lint-${{ github.event.pull_request.number || github.ref }}
+ # Let dev/main commits finish, PR and feature-branch runs supersede older ones
+ group: lint-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.run_id) || github.ref }}
cancel-in-progress: true
permissions:
contents: read
diff --git a/.github/workflows/ci-static-analysis.yml b/.github/workflows/ci-static-analysis.yml
index d774194e0..c534e75c0 100644
--- a/.github/workflows/ci-static-analysis.yml
+++ b/.github/workflows/ci-static-analysis.yml
@@ -8,7 +8,8 @@ on:
- 'translations**'
workflow_dispatch:
concurrency:
- group: static-analysis-${{ github.event.pull_request.number || github.ref }}
+ # Let dev/main commits finish, PR and feature-branch runs supersede older ones
+ group: static-analysis-${{ github.event.pull_request.number || ((github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.run_id) || github.ref }}
cancel-in-progress: true
permissions:
contents: read