Sha256: 8ba3725c39f334f34a57850fb532a37afc6d936590ebc6d7b17dfc4d3331ceee

Contents?: true

Size: 1.04 KB

Versions: 202

Compression:

Stored size: 1.04 KB

Contents

module Fastlane
  module Actions
    class LastGitTagAction < Action
      def self.run(params)
        Actions.last_git_tag_name
      end

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

      def self.description
        "Get the most recent git tag"
      end

      def self.available_options
        []
      end

      def self.output
        []
      end

      def self.authors
        ["KrauseFx"]
      end

      def self.is_supported?(platform)
        true
      end

      def self.details
        "If you are using this action on a **shallow clone**, *the default with some CI systems like Bamboo*, you need to ensure that you have also have pulled all the git tags appropriately. Assuming your git repo has the correct remote set you can issue `sh('git fetch --tags')`"
      end

      def self.example_code
        [
          'last_git_tag'
        ]
      end

      def self.category
        :source_control
      end
    end
  end
end

Version data entries

202 entries across 202 versions & 1 rubygems

Version Path
fastlane-2.67.0.beta.20171126010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.67.0.beta.20171125010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.67.0.beta.20171124010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.67.0.beta.20171123010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.67.0.beta.20171122010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.66.2 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.66.1 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.67.0.beta.20171121010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.66.0 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171120010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171119010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171118010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171117010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171116010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171115010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171114010003 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.64.1 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171113010004 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.65.0.beta.20171112010003 fastlane/lib/fastlane/actions/last_git_tag.rb