Sha256: ffd4526308463f0c2e0c6537b64d95b1077b374233ebff5e9af97ca5a8509a38

Contents?: true

Size: 1.08 KB

Versions: 384

Compression:

Stored size: 1.08 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.return_type
        :string
      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 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

384 entries across 384 versions & 2 rubygems

Version Path
fastlane-2.122.0.beta.20190426200020 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.122.0.beta.20190425200104 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.122.0.beta.20190424200026 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.122.0.beta.20190423200058 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.1 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190422200029 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190421200026 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190420200032 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190419200010 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190418200030 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190417200018 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190416200048 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190415200032 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190414200028 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190413200059 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190412200021 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190411200023 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.121.0.beta.20190410200018 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.120.0 fastlane/lib/fastlane/actions/last_git_tag.rb