From 1ef549f7882bce9e8c51f67168fde0726608895a Mon Sep 17 00:00:00 2001 From: EthanHuo Date: Wed, 23 Sep 2026 14:59:23 +0800 Subject: [PATCH] ci: supersede stale runs, serialize releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Checks now carry `concurrency` with cancel-in-progress so a newer push to the same ref kills the queued predecessor instead of stacking runs on the self-hosted pool. Release workflows get the same grouping with cancelling disabled — a publish must never be interrupted halfway. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 197b78b..08eb60d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,12 @@ on: branches: - main +# A newer push to the same ref supersedes this run: checks are +# side-effect free, so cancelling the stale one costs nothing. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true