From 478aa4b70e101ce6be57f93fc5033cdbde1e2db7 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 10 May 2026 14:12:56 +0700 Subject: [PATCH] ci: cancel superseded PR runs to free runner capacity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cancel-in-progress is gated to pull_request events so merge_group and push runs always complete — only redundant CI from rapid PR pushes gets cancelled. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b17e5be4f..62980d67e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: merge_group: workflow_dispatch: +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: format: runs-on: ubuntu-latest