Class: Fastlane::Actions::PushGitTagsAction
Class Method Summary
collapse
action_name, authors, details, lane_context, method_missing, other_action, output, return_value, sh, step_text
Class Method Details
.author ⇒ Object
45
46
47
|
# File 'lib/fastlane/actions/push_git_tags.rb', line 45
def self.author
['vittoriom']
end
|
.available_options ⇒ Object
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/fastlane/actions/push_git_tags.rb', line 30
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :force,
env_name: "FL_PUSH_GIT_FORCE",
description: "Force push to remote. Defaults to false",
is_string: false,
default_value: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :remote,
env_name: "FL_GIT_PUSH_REMOTE",
description: "The remote to push tags to",
optional: true)
]
end
|
.description ⇒ Object
26
27
28
|
# File 'lib/fastlane/actions/push_git_tags.rb', line 26
def self.description
"Push local tags to the remote - this will only push tags"
end
|
.is_supported?(platform) ⇒ Boolean
49
50
51
|
# File 'lib/fastlane/actions/push_git_tags.rb', line 49
def self.is_supported?(platform)
true
end
|
.run(params) ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/fastlane/actions/push_git_tags.rb', line 4
def self.run(params)
command = [
'git',
'push',
'--tags'
]
command << '--force' if params[:force]
command << params[:remote] if params[:remote]
result = Actions.sh(command.join(' '))
UI.success('Tags pushed to remote')
result
end
|