From 577a891e734af0140d165af730ba967b5235e8fd Mon Sep 17 00:00:00 2001 From: qiqi Date: Thu, 5 Nov 2026 11:27:04 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E9=99=90=E5=88=B6=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E5=88=86=E6=94=AF=20+=20=E5=B9=B6=E5=8F=91=E5=8F=96=E6=B6=88?= =?UTF-8?q?=20+=20=E8=B6=85=E6=97=B6=E5=85=9C=E5=BA=95=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=20Actions=20=E5=88=86=E9=92=9F=E6=B6=88=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2795216..8253025 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,21 @@ name: validate -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +# 连推多次时只保留最后一次,避免排队任务白烧分钟 +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: validate: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4