Automated promotion of specific build from separate pipeline

I would like handle promotion of builds in an automated fashion, as described in How the promotion feature works. I would like for the promotion to be handled on a scheduled basis (once a day) and to use the most recent build from a specific pipeline (where there may be multiple builds on that pipeline each day).

To that end, is there a way to assign DRONE_BUILD_NUMBER from Pipeline A (if the build succeeds) to a variable and then use that build number later in Pipeline B (my cron triggered pipeline) to promote the build to a specific environment?