Sha256: 9c90445ac70c7e2740710dfb122ce85d0a16336a4063bc280c4f2b6f4d14685b

Contents?: true

Size: 795 Bytes

Versions: 15

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

15 entries across 15 versions & 1 rubygems

Version Path
fastlane-1.20.0 lib/fastlane/actions/git_branch.rb
fastlane-1.19.0 lib/fastlane/actions/git_branch.rb
fastlane-1.18.0 lib/fastlane/actions/git_branch.rb
fastlane-1.17.1 lib/fastlane/actions/git_branch.rb
fastlane-1.17.0 lib/fastlane/actions/git_branch.rb
fastlane-1.16.0 lib/fastlane/actions/git_branch.rb
fastlane-1.15.0 lib/fastlane/actions/git_branch.rb
fastlane-1.14.1 lib/fastlane/actions/git_branch.rb
fastlane-1.14.0 lib/fastlane/actions/git_branch.rb
fastlane-1.13.1 lib/fastlane/actions/git_branch.rb
fastlane-1.13.0 lib/fastlane/actions/git_branch.rb
fastlane-1.12.0 lib/fastlane/actions/git_branch.rb
fastlane-1.11.0 lib/fastlane/actions/git_branch.rb
fastlane-1.10.0 lib/fastlane/actions/git_branch.rb
fastlane-1.9.0 lib/fastlane/actions/git_branch.rb