pub fn current_branch() -> Result<String>
Detect the current git branch, preferring explicit overrides when provided.
Order of precedence:
SAMPO_RELEASE_BRANCH
GITHUB_REF_NAME
git rev-parse --abbrev-ref HEAD