From bfbd4eee5309ef494357a15af8d40487938ecd50 Mon Sep 17 00:00:00 2001 From: Ubbe Date: Wed, 3 Dec 2025 18:05:22 +0700 Subject: [PATCH] ci(frontend): concurrency optimizations (#11525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Changes 🏗️ Added the same concurrency optimisation to the Front-end and Fullstack CI workflows. It will: - Cancel in-progress runs when a new workflow starts for the same branch/PR - Reduce CI costs by avoiding redundant runs - Ensure only the latest workflow runs - Both workflows now use the same concurrency strategy to optimise CI billing. ## Checklist 📋 ### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] We will see as we push commits... --- .github/workflows/platform-frontend-ci.yml | 4 ++++ .github/workflows/platform-fullstack-ci.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.yml index 58d3464a3a..33e12aa900 100644 --- a/.github/workflows/platform-frontend-ci.yml +++ b/.github/workflows/platform-frontend-ci.yml @@ -12,6 +12,10 @@ on: - "autogpt_platform/frontend/**" merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || '' }} + cancel-in-progress: true + defaults: run: shell: bash diff --git a/.github/workflows/platform-fullstack-ci.yml b/.github/workflows/platform-fullstack-ci.yml index a75c1b9068..0e4b0f8f49 100644 --- a/.github/workflows/platform-fullstack-ci.yml +++ b/.github/workflows/platform-fullstack-ci.yml @@ -12,6 +12,10 @@ on: - "autogpt_platform/**" merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || '' }} + cancel-in-progress: true + defaults: run: shell: bash