-
Notifications
You must be signed in to change notification settings - Fork 51
/
git_push.rb
48 lines (41 loc) · 1.08 KB
/
git_push.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module Fastlane
module Actions
class GitPushAction < Action
def self.run(params)
cmd = "git push"
if params[:branch]
cmd << " origin #{params[:branch]}"
end
result = Actions.sh(cmd.to_s)
UI.success("Successfully pushed 💾.")
return result
end
def self.description
"Directly commit the given file with the given message"
end
def self.details
""
end
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :branch,
description: "The branch you want to push",
is_string: false,
verify_block: proc do |value|
end),
]
end
def self.output
end
def self.return_value
nil
end
def self.authors
["thierryxing"]
end
def self.is_supported?(platform)
true
end
end
end
end