ci: 加 paths-ignore + landing concurrency cancel (省 GH Actions minutes)

對應 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 省最多
This commit is contained in:
2026-05-16 16:46:40 +08:00
parent 3892dc3a9b
commit 10834ef9bb
2 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,8 @@ on:
concurrency: concurrency:
group: deploy-landing-${{ github.ref }} group: deploy-landing-${{ github.ref }}
cancel-in-progress: false # 連續 push landing 改動時,舊 build 自動 cancellanding build ~3 min 是大頭,省 minutes 關鍵)
cancel-in-progress: true
jobs: jobs:
deploy: deploy:
+12 -1
View File
@@ -7,7 +7,18 @@ name: Deploy Workers
on: on:
push: push:
branches: [main] branches: [main]
# 不設 paths:由 discover job 用 git diff 過濾,push 都會觸發 workflow 判斷 # 2026-05-16 leo Actions 配額用爆後加 paths-ignore:純文件 commit 完全不觸發 workflow
# (之前每個 push 都會跑 discover job 吃 ~1 mindoc-only commit 多時積很多)
# worker code 變動仍由 discover job 用 git diff 過濾
paths-ignore:
- '**/*.md'
- 'AGENTS.md'
- '.agents/**'
- 'docs/**'
- 'registry/examples/**'
- 'registry/skills/**'
- '.gitignore'
- 'LICENSE'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
force_all: force_all: