From 1742db77a403b12755e3081d768821167ee8af7d Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Fri, 7 Aug 2026 22:14:29 +0800 Subject: [PATCH] fix(ci): unify concurrency group and enable cancel-in-progress for all events - Remove event_name from concurrency group key, use only gitea.ref - Change cancel-in-progress to always true (was conditional on pull_request) - Ensures only one CI run per branch at any time, old runs are cancelled - Prevents concurrent image builds/deployments from interfering Fixes develop push concurrency lock issue --- .gitea/workflows/ci-pipeline.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 88fb3f9d2..42ef8c9c3 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -21,9 +21,8 @@ on: permissions: contents: read concurrency: - group: ci-pipeline-${{ gitea.event_name }}-${{ gitea.ref }} - # PR事件取消进行中的旧run,push事件不取消(确保完整CI跑完) - cancel-in-progress: ${{ gitea.event_name == 'pull_request' }} + group: ci-pipeline-${{ gitea.ref }} + cancel-in-progress: true jobs: check-frontend-only: name: Check if frontend-only change