Sha256: 744b4e1324543748c852c20473342e0a941a7a33146b4c8d2f54277ef8c28e05
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
module Fastlane module Actions class GitBranchAction < Action def self.run(params) branch = Actions.git_branch || "" return "" if branch == "HEAD" # Backwards compatibility with the original (and documented) implementation branch end ##################################################### # @!group Documentation ##################################################### def self.description "Returns the name of the current git branch, possibly as managed by CI ENV vars" end def self.details "If no branch could be found, this action will return an empty string. This is a wrapper for the internal action Actions.git_branch" end def self.available_options [] end def self.output [ ['GIT_BRANCH_ENV_VARS', 'The git branch environment variables'] ] end def self.authors ["KrauseFx"] end def self.is_supported?(platform) true end def self.example_code [ 'git_branch' ] end def self.return_type :string end def self.category :source_control end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.187.0 | fastlane/lib/fastlane/actions/git_branch.rb |