fastlane-plugin-stream_actions 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e09a263ddb2f9ee18214a8076d11ec1a455147f19a960d4a0d73259028d7f7c
|
4
|
+
data.tar.gz: 1f6bbd93c2c912b7c4978fcccb004ee927c59f8c59f67d977d22a6ea0ac2082f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87878e73b99f8607854939d954fdaafe52322a5536c3ba972950a8b811be409c055c642106aa4a4a4787082d0c44a4687de736425ebcc8b40e9e52e050aee05c
|
7
|
+
data.tar.gz: 8fa6b9690bda755495b4425d126190f79c39f8812d1aa91b0932aa3f7e63710cbd5204a2aba2cf52d58c30117b4b7aad0fa9e7e4d75b0726e844aad280b66fe0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class PodPushSafelyAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
pod_push_safely(params)
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.pod_push_safely(params)
|
9
|
+
UI.message("Starting to push podspec: #{params[:podspec]}")
|
10
|
+
other_action.pod_push(path: params[:podspec], allow_warnings: true, synchronous: params[:sync])
|
11
|
+
rescue StandardError => e
|
12
|
+
UI.message(e)
|
13
|
+
UI.message("pod_push failed for #{params[:podspec]}. Waiting a minute until retry for trunk to get updated...")
|
14
|
+
sleep(60) # sleep for a minute, wait until trunk gets updates
|
15
|
+
pod_push_safely(params)
|
16
|
+
end
|
17
|
+
|
18
|
+
#####################################################
|
19
|
+
# @!group Documentation
|
20
|
+
#####################################################
|
21
|
+
|
22
|
+
def self.description
|
23
|
+
'Safely push a Podspec to Trunk or a private repository'
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.available_options
|
27
|
+
[
|
28
|
+
FastlaneCore::ConfigItem.new(
|
29
|
+
key: :podspec,
|
30
|
+
description: 'The Podspec you want to push'
|
31
|
+
),
|
32
|
+
FastlaneCore::ConfigItem.new(
|
33
|
+
key: :sync,
|
34
|
+
description: 'If validation depends on other recently pushed pods, synchronize',
|
35
|
+
is_string: false,
|
36
|
+
default_value: false
|
37
|
+
)
|
38
|
+
]
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.supported?(_platform)
|
42
|
+
[:ios].include?(platform)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -37,7 +37,7 @@ module Fastlane
|
|
37
37
|
commitish: ENV['BRANCH_NAME'] || other_action.git_branch
|
38
38
|
)
|
39
39
|
|
40
|
-
podspecs.each { |podspec| pod_push_safely(podspec: podspec, sync: params[:pod_sync] & true) }
|
40
|
+
podspecs.each { |podspec| other_action.pod_push_safely(podspec: podspec, sync: params[:pod_sync] & true) }
|
41
41
|
|
42
42
|
UI.success("Github release v#{version_number} was created, please visit #{release_details['html_url']} to see it! 🚢")
|
43
43
|
end
|
@@ -69,16 +69,6 @@ module Fastlane
|
|
69
69
|
other_action.push_to_git_remote(tags: true)
|
70
70
|
end
|
71
71
|
|
72
|
-
def self.pod_push_safely(params)
|
73
|
-
UI.message("Starting to push podspec: #{params[:podspec]}")
|
74
|
-
other_action.pod_push(path: params[:podspec], allow_warnings: true, synchronous: params[:sync])
|
75
|
-
rescue StandardError => e
|
76
|
-
UI.message(e)
|
77
|
-
UI.message("pod_push failed for #{params[:podspec]}. Waiting a minute until retry for trunk to get updated...")
|
78
|
-
sleep(60) # sleep for a minute, wait until trunk gets updates
|
79
|
-
pod_push_safely(params)
|
80
|
-
end
|
81
|
-
|
82
72
|
#####################################################
|
83
73
|
# @!group Documentation
|
84
74
|
#####################################################
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-stream_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetStream
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -230,6 +230,7 @@ files:
|
|
230
230
|
- lib/fastlane/plugin/stream_actions.rb
|
231
231
|
- lib/fastlane/plugin/stream_actions/actions/custom_match.rb
|
232
232
|
- lib/fastlane/plugin/stream_actions/actions/is_check_required.rb
|
233
|
+
- lib/fastlane/plugin/stream_actions/actions/pod_push_safely.rb
|
233
234
|
- lib/fastlane/plugin/stream_actions/actions/read_changelog.rb
|
234
235
|
- lib/fastlane/plugin/stream_actions/actions/release_ios_sdk.rb
|
235
236
|
- lib/fastlane/plugin/stream_actions/actions/retrieve_xctest_names.rb
|