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: