It would be nice to have access to the user who promoted a build via an environment variable, similar to DRONE_COMMIT_AUTHOR for who made the commit. Perhaps DRONE_PROMOTE_USER or DRONE_DEPLOY_USER (to go with DRONE_DEPLOY_TO)? something like that? It would probably just be empty for non-promote events. We’re looking for a way to attribute changes made by the CI system to the user who actually triggered the deployment.
It looks like DRONE_BUILD_TRIGGER is only available within the step environments, and not available for substitution within the .drone.yml file. In fact we get this error when we try to use it for substitution: