// CurrentRefName returns the ref of the current HEAD
CurrentRefName returns the ref of the current HEAD
// CurrentRefName returns the ref of the current HEAD
func (gcl *GitCommandLine) CurrentRefName() string {
	origBranchRef, _ := exec.Command("git", "rev-parse", "HEAD").Output()
	return strings.TrimSpace(string(origBranchRef))
}
func ( gcl * GitCommandLine ) CurrentRefName ( ) string { origBranchRef , _ := exec . Command ( " " , " " , " " ) . Output ( ) return strings . TrimSpace ( string ( origBranchRef ) ) }
CurrentRefName returns the ref of the current HEAD
CurrentRefName returns the ref of the current HEAD
// this Github action uses `actions/checkout`, which places the repo in a "detached head" state, // so this command gives us the sha of the detatched head