Sha256: 0ce03aaa73bc376cf1fc497356d70ca9cc1164828bcb3032a5d150054b0f73a8

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

module Pantograph
  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

7 entries across 7 versions & 1 rubygems

Version Path
pantograph-0.1.8 pantograph/lib/pantograph/actions/last_git_tag.rb
pantograph-0.1.7 pantograph/lib/pantograph/actions/last_git_tag.rb
pantograph-0.1.6 pantograph/lib/pantograph/actions/last_git_tag.rb
pantograph-0.1.4 pantograph/lib/pantograph/actions/last_git_tag.rb
pantograph-0.1.3 pantograph/lib/pantograph/actions/last_git_tag.rb
pantograph-0.1.1 pantograph/lib/pantograph/actions/last_git_tag.rb
pantograph-0.1.0 pantograph/lib/pantograph/actions/last_git_tag.rb