current_branch

Function current_branch 

Source
pub fn current_branch() -> Result<String>
Expand description

Detect the current git branch, preferring explicit overrides when provided.

Order of precedence:

  1. SAMPO_RELEASE_BRANCH
  2. GITHUB_REF_NAME
  3. git rev-parse --abbrev-ref HEAD