Hi,
In my pipelines yaml file I have the following step:
notify:
- email: "${BUILDKITE_BUILD_AUTHOR_EMAIL}"
if: build.state == "failing" || build.state == "failed"
this block of code works fine during the initial CI checks on PR creation but when I join the merge queue in github, this block fails because BUILDKITE_BUILD_AUTHOR_EMAIL is empty(“”) which fails the entire pipeline.
I think this is happening because Github creates a temporary commit and branch, this branch doesnt have a author or email attached to the commit, how can I overcome this ? I would like to notify users when the pipeline fails in the merge-queue