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.128.0 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190722200021 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190721200024 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190720200049 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane_iac_publish-0.1.5 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.127.2 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190719200019 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190718200101 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190717200026 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190716200022 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190715200056 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190714200028 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190713200107 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190712200059 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190711200117 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.127.1 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.128.0.beta.20190710200106 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.127.0 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.127.0.beta.20190709200015 fastlane/lib/fastlane/actions/last_git_tag.rb
fastlane-2.127.0.beta.20190708200031 fastlane/lib/fastlane/actions/last_git_tag.rb