The CI Challenge: save 10% or get $1,000

Exclude test-only directories from a deploy workflow's path trigger

Merges confined to the worker's test directory no longer start a production deployment run.

How OpenClaw used this technique

Read what OpenClaw changed and follow the original sources.

Exclude test-only directories from a deploy workflow's path trigger

Merges confined to the worker's test directory no longer start a production deployment run.

Use it when
A push-triggered deploy or release workflow uses a broad directory glob that also covers that directory's tests.
Before applying it
A merge that also changes deployable files still deploys, and GitHub's documented large-diff exceptions to path filtering still apply.

Company Playbooks