Class: Fastlane::Actions::LastGitTagAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/last_git_tag.rb

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject


28
29
30
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 28

def self.authors
  ["KrauseFx"]
end

.available_optionsObject


16
17
18
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 16

def self.available_options
  []
end

.categoryObject


46
47
48
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 46

def self.category
  :source_control
end

.descriptionObject


12
13
14
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 12

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

.detailsObject


36
37
38
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 36

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

.example_codeObject


40
41
42
43
44
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 40

def self.example_code
  [
    'last_git_tag'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:


32
33
34
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 32

def self.is_supported?(platform)
  true
end

.outputObject


20
21
22
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 20

def self.output
  []
end

.return_typeObject


24
25
26
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 24

def self.return_type
  :string
end

.run(params) ⇒ Object


4
5
6
# File 'fastlane/lib/fastlane/actions/last_git_tag.rb', line 4

def self.run(params)
  Actions.last_git_tag_name
end