Perhaps via an environment variable such as $SRHT_GIT_BRANCH
.
For example I want to know if this is master branch so that I can update a download page with uploaded binaries. Or if it's a non-master branch I want to create an alias from that branch name to a download link.
Here's how I do this with Azure Dev Pipelines today:
Is this still supported? It would be useful for setting up a review environment with a custom subdomain.