I only noticed this was not in the documentation (https://docs.drone.io/user-guide/pipeline/triggers/#by-target) after trying to use it, as I believed the “exclude” syntax in conditions worked across all keys, but the following does not work:
trigger:
event:
- promote
target:
exclude:
- production
And will run a pipeline on any promote event, with no warnings about (for example) an unknown key in the yaml file. If there is a technical reason why the exclude syntax can’t work for the promote event, could we at least make drone error on this kind of exclude key, as it feels very misleading, with it working in all other cases I’ve tried!