Define rules locally and not in a global workflow to avoid clashes with downstream triggered pipelines.
workflow