The documentation for $DRONE_TAG is rather weak - is it supposed to be set only for tag events (and “promotion events that are derived from tags”)? We need to get the tag for ref triggers also, and luckily, AFAICT $DRONE_TAG is actually available for these builds too (only based on observing one build as of yet).
Can you please clarify if $DRONE_TAG is also supposed to be set for ref triggered builds, where the ref is a tag? If so, also update the documentation please. We really need $DRONE_TAG in combination with the ref trigger (provided that the ref is a tag of course), since we can’t filter tag events.