From 3c90bde6fbb6157ba4ee3d0a7e9d039a4ec80fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qu=C5=8D?= Date: Fri, 17 Jul 2026 02:21:24 +0000 Subject: [PATCH] ci: add concurrency-cancellation group to CI workflow Superseded CI runs (rapid pushes to the same ref or PR) currently run to completion, wasting Actions minutes. Add a concurrency group keyed on the workflow name plus head_ref/ref so a newer run cancels the prior in-progress one. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cdf926c..4ed0ad8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,10 @@ on: push: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest