ci: 注释 paths-ignore 对 empty commit 的 vacuously-skip 行为
empirical discovery:c6bb0c85 那个 --allow-empty commit 推送后没有 触发 build。证实 Gitea Actions(同 GitHub Actions)对 paths-ignore + empty commit 的处理是"vacuously matches ignore list, skip"。 把这个 quirk 直接注释在 workflow 文件里,后续自己或 Claude 看到 build 没触发时不用再怀疑 trigger 配置错了,知道是 empty commit 的 正常行为。
This commit is contained in:
@@ -3,6 +3,10 @@ name: Build Docker Image
|
|||||||
on:
|
on:
|
||||||
# 自动触发:push 到 custom 分支时跑(force-push 后的 rebase 也会触发,可接受)
|
# 自动触发:push 到 custom 分支时跑(force-push 后的 rebase 也会触发,可接受)
|
||||||
# paths-ignore:纯文档/配置改动跳过,避免浪费 ~10 分钟构建
|
# paths-ignore:纯文档/配置改动跳过,避免浪费 ~10 分钟构建
|
||||||
|
# ⚠️ 已知 quirk(2026-05-02 验证):empty commit(git commit --allow-empty)
|
||||||
|
# 不会触发 paths-ignore 过滤的 workflow,Gitea 把 zero-paths-changed 当作
|
||||||
|
# "vacuously matches ignore list" 跳过。要强制触发必须至少改一个非 ignore 路径
|
||||||
|
# 的真实文件(改这个 yml 自己最稳)。
|
||||||
push:
|
push:
|
||||||
branches: [custom]
|
branches: [custom]
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
|
|||||||
Reference in New Issue
Block a user