I use email plugin to send notification when build process finished. But when event is Tag, notify step show error : bad email address.
I inspect the container, there is no CI_COMMIT_AUTHOR_EMAIL when event tag.
I’ve also seen that it’s missing for Github pull requests.
Is there a list of what environment variables are set for which events? Is there a reason why the email is missing from some events?
Is there a reason why the email is missing from some events?
GitHub does not provide the committer email in the webhook, which means the field will be empty in Drone. For reference, you can see a sample pull request payload here. This committer email is also missing in the tag event webhook.
Is there a list of what environment variables are set for which events?
Not currently. We would have to audit all event types for all providers, but that information certainly would be useful to have.
Great, thanks for the insight and the sample payload data.