Sha256: 5a314e7cd299cda651dc5319a0aa4d97b610d8704163d86edc5aef64d8eb6d9a
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fastlane-2.180.1 | fastlane/lib/fastlane/actions/git_branch.rb |
fastlane-2.180.0 | fastlane/lib/fastlane/actions/git_branch.rb |
fastlane-2.179.0 | fastlane/lib/fastlane/actions/git_branch.rb |