Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

ci(frontend): fix concurrency groups (#11551)

Ubbef1c6c9463647
diff --git a/.github/workflows/platform-frontend-ci.yml b/.github/workflows/platform-frontend-ci.yml
index 33e12aa900..2154fe1385 100644
--- a/.github/workflows/platform-frontend-ci.yml
+++ b/.github/workflows/platform-frontend-ci.yml
@@ -13,8 +13,8 @@ on:
merge_group:
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || '' }}
- cancel-in-progress: true
+ group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('merge-queue-{0}', github.ref) || format('{0}-{1}', github.ref, github.event.pull_request.number || github.sha) }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
defaults:
run:
diff --git a/.github/workflows/platform-fullstack-ci.yml b/.github/workflows/platform-fullstack-ci.yml
index 0e4b0f8f49..c888ace6c5 100644
--- a/.github/workflows/platform-fullstack-ci.yml
+++ b/.github/workflows/platform-fullstack-ci.yml
@@ -13,8 +13,8 @@ on:
merge_group:
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || '' }}
- cancel-in-progress: true
+ group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('merge-queue-{0}', github.ref) || github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha }}
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
defaults:
run: