Hey, depending on if a pipeline is invoked by a runner or via cli drone exec --event=push, the environment variable name holding the event value is different (DRONE_BUILD_EVENT vs. DRONE_EVENT) and I am not completely sure, if that is intended and if not what the official name should be. The environment documentation [1] is referencing the first one, so I guess the cli implementation might have a bug, when setting up the environment variables from the cli parameters.
Best regards
Sven