From b4be8f6bae85e81d00d779a7abf55bbb54959537 Mon Sep 17 00:00:00 2001 From: dsh Date: Tue, 10 Nov 2026 19:44:36 +0800 Subject: [PATCH] ci: cancel the previous run of the same ref when a new push arrives --- .gitea/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f9c6d5f..a50bd35 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,4 +1,4 @@ -# Gitea act_runner (labels: ubuntu-latest / ubuntu-24.04 / ubuntu-22.04). +# Gitea act_runner (labels: ubuntu-latest / ubuntu-24.04 / ubuntu-22.04). # # The machine has no test framework of its own (tests/vm_test.c is the CLI), so # the steps below are the promises the README makes about I/O and geometry. @@ -13,6 +13,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: smoke: runs-on: ubuntu-latest