module Fastlane::Actions

def self.git_branch

Returns the current git branch - can be replaced using the environment variable `GIT_BRANCH`
def self.git_branch
  return ENV['GIT_BRANCH'] if ENV['GIT_BRANCH'].to_s.length > 0 # set by Jenkins
  s = `git rev-parse --abbrev-ref HEAD`
  return s.to_s.strip if s.to_s.length > 0
  nil
end