From 10ff60b31774599c29a34a5771c3812c081a227a Mon Sep 17 00:00:00 2001 From: Onelevenvy Date: Sat, 1 Aug 2026 10:51:30 +0800 Subject: [PATCH] ci: add concurrency control and limit PR triggers for main branch --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1ce940..6965855 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,11 @@ on: push: branches: [main] pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: checks: @@ -22,4 +27,4 @@ jobs: run: cargo fmt --all -- --check - name: Clippy - run: cargo clippy --all-targets --all-features -- -D warnings + run: cargo clippy --all-targets --all-features -- -D warnings \ No newline at end of file