From 10834ef9bb92432497eddb0d6e4f79b7bc2cf4c3 Mon Sep 17 00:00:00 2001 From: richblack Date: Sat, 16 May 2026 16:46:40 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=8A=A0=20paths-ignore=20+=20landing=20?= =?UTF-8?q?concurrency=20cancel=20(=E7=9C=81=20GH=20Actions=20minutes)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 對應 leo 2026-05-16 Actions 配額用爆 → 全面瘦身 CI trigger。 deploy.yml (Workers): 既有:worker-level git diff filter(只 deploy 改到的 worker)✅ 新增:workflow-level paths-ignore — doc-only commit 完全不啟動 workflow 排除:**.md / AGENTS.md / .agents/** / docs/** / registry/examples/** / registry/skills/** / .gitignore / LICENSE 之前每個 doc push 都觸發 discover job 吃 ~1 min。 本輪 LI 開發 ~10 doc-only commit = 省 ~10 min deploy-landing.yml (Pages): 既有:paths filter ('landing/**') ✅ 新增:concurrency cancel-in-progress (原 false → true) landing build ~3 min 是大頭,連續 push 取消舊 build 省最多 --- .github/workflows/deploy-landing.yml | 3 ++- .github/workflows/deploy.yml | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-landing.yml b/.github/workflows/deploy-landing.yml index a3c34a1..10e3190 100644 --- a/.github/workflows/deploy-landing.yml +++ b/.github/workflows/deploy-landing.yml @@ -15,7 +15,8 @@ on: concurrency: group: deploy-landing-${{ github.ref }} - cancel-in-progress: false + # 連續 push landing 改動時,舊 build 自動 cancel(landing build ~3 min 是大頭,省 minutes 關鍵) + cancel-in-progress: true jobs: deploy: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ee3645e..bc8fad6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,7 +7,18 @@ name: Deploy Workers on: push: branches: [main] - # 不設 paths:由 discover job 用 git diff 過濾,push 都會觸發讓 workflow 判斷 + # 2026-05-16 leo Actions 配額用爆後加 paths-ignore:純文件 commit 完全不觸發 workflow + # (之前每個 push 都會跑 discover job 吃 ~1 min,doc-only commit 多時積很多) + # worker code 變動仍由 discover job 用 git diff 過濾 + paths-ignore: + - '**/*.md' + - 'AGENTS.md' + - '.agents/**' + - 'docs/**' + - 'registry/examples/**' + - 'registry/skills/**' + - '.gitignore' + - 'LICENSE' workflow_dispatch: inputs: force_all: