Class: Fastlane::Actions::PushGitTagsAction

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

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, method_missing, other_action, output, return_value, sh, step_text

Class Method Details

.authorObject



29
30
31
# File 'lib/fastlane/actions/push_git_tags.rb', line 29

def self.author
  ['vittoriom']
end

.available_optionsObject



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

def self.available_options
  [
  ]
end

.descriptionObject



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

def self.description
  "Push local tags to the remote - this will only push tags"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/fastlane/actions/push_git_tags.rb', line 33

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/fastlane/actions/push_git_tags.rb', line 4

def self.run(params)
  command = [
    'git',
    'push',
    '--tags'
  ]

  result = Actions.sh(command.join(' '))
  UI.success('Tags pushed to remote')
  result
end