Class: Fastlane::Actions::LastGitTagAction

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

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, details, sh, step_text

Class Method Details

.authorsObject



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

def self.authors
  ["KrauseFx"]
end

.available_optionsObject



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

def self.available_options
  []
end

.descriptionObject



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

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.is_supported?(platform)
  true
end

.outputObject



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

def self.output
  []
end

.run(params) ⇒ Object



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

def self.run(params)
  sh "git describe --tags --abbrev=0"
end