Sha256: adf9de5da49e370a2013d82a33d81669c413153f63ae8be60f66b193dc03e456

Contents?: true

Size: 795 Bytes

Versions: 49

Compression:

Stored size: 795 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class GitBranchAction < Action
      def self.run(params)
        ENV['GIT_BRANCH'] or `git symbolic-ref HEAD --short 2>/dev/null`.strip
      end

      #####################################################
      # @!group Documentation
      #####################################################

      def self.description
        "Returns the name of the current git branch"
      end

      def self.details
        "If no branch could be found, this action will return nil"
      end

      def self.available_options
        []
      end

      def self.output
        []
      end

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        true
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
fastlane-1.47.0 lib/fastlane/actions/git_branch.rb
fastlane-1.46.1 lib/fastlane/actions/git_branch.rb
fastlane-1.46.0 lib/fastlane/actions/git_branch.rb
fastlane-1.45.0 lib/fastlane/actions/git_branch.rb
fastlane-1.44.0 lib/fastlane/actions/git_branch.rb
fastlane-1.43.0 lib/fastlane/actions/git_branch.rb
fastlane-1.42.0 lib/fastlane/actions/git_branch.rb
fastlane-1.41.1 lib/fastlane/actions/git_branch.rb
fastlane-1.41.0 lib/fastlane/actions/git_branch.rb
fastlane-1.40.0 lib/fastlane/actions/git_branch.rb
fastlane-1.39.0 lib/fastlane/actions/git_branch.rb
fastlane-1.38.1 lib/fastlane/actions/git_branch.rb
fastlane-1.38.0 lib/fastlane/actions/git_branch.rb
fastlane-1.37.0 lib/fastlane/actions/git_branch.rb
fastlane-1.36.4 lib/fastlane/actions/git_branch.rb
fastlane-1.36.3 lib/fastlane/actions/git_branch.rb
fastlane-1.36.2 lib/fastlane/actions/git_branch.rb
fastlane-1.36.1 lib/fastlane/actions/git_branch.rb
fastlane-1.36.0 lib/fastlane/actions/git_branch.rb
fastlane-1.35.0 lib/fastlane/actions/git_branch.rb