I would like to structure my pipeline so that certain steps only execute when a new tag to master is pushed. The general flow is that feature branches are worked on and merged to master. Then when we are ready, we tag master and trigger a release.
However, when this is done,
BUILDKITE_TAG both have the tag name. Is the intended behavior? I would have expected
BUILDKITE_BRANCH to always be the name of a branch. I understand that branches and tags aren’t that different as far as git is concerned. But it would be helpful if there were a way to determine the base branch that the tag was made against.
Looking at the webhook payload that Github Enterprise sends, it looks like
base_ref has the necessary information. Is this something that could be made available if
BUILDKITE_TAG having the same value is the intended behavior?