fastlane-plugin-stream_actions 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70eff3c83561622f9e8fe79b9c08203718b56eaaa8f6672576b04bdfabf2c8b1
4
- data.tar.gz: 7539c2d5c68a071535eda2b7d5a5d713158d938ed10c9f559fe83b26e91ed4ed
3
+ metadata.gz: '09e99fe9162cf2f2e5504601cb257329a35d3121b952b142d9765134fd05c8ca'
4
+ data.tar.gz: 81c2868f9287640c4d900f2b05b1eafacdde21c29e999df61994366e2ef4848f
5
5
  SHA512:
6
- metadata.gz: cd9721907dfc24aac39d7cb45e6fa71a0659ca830891f7db84e5e2d12dbc4d731886bb5e16ab56b92e2ad52ad205483aa7795f2c1f43b7ac78fd47738a41decc
7
- data.tar.gz: fe971302b550f3f5395c9368e1bcfb5819e7f1052a5369d60c4ca3eb30031712c0216302c4a6185bb6ffde3493b0f3d7d803a78aa80874fb883dc28274f53c06
6
+ metadata.gz: c06183ce1fd9e342677005f5e539f5008c2a4f24958bc3e49c5655b4d68bb752971df617d311efc7a76af972496102e323e16e2da3dbbccfe01915bccb8563c4
7
+ data.tar.gz: d52f880891dba3d28f202dde9fcdc4a732122e8d81fbc18e270be4a2e72cc8b13e82bfb9e1ba3d5a1c8600edc551e0a3abee63c84456bd1cd3e7b9048b41247c
@@ -3,7 +3,9 @@ module Fastlane
3
3
  class ReleaseIosSdkAction < Action
4
4
  def self.run(params)
5
5
  podspecs = []
6
- params[:sdk_names].each { |sdk| podspecs << "#{sdk}.podspec" }
6
+ (params[:podspec_names] || params[:sdk_names]).each do |sdk|
7
+ podspecs << (sdk.include?('.podspec') ? sdk : "#{sdk}.podspec")
8
+ end
7
9
 
8
10
  if params[:update_version_numbers]
9
11
  ensure_everything_is_set_up(params)
@@ -30,6 +32,8 @@ module Fastlane
30
32
  other_action.version_bump_podspec(path: podspec, version_number: version_number)
31
33
  end
32
34
 
35
+ params[:extra_changes].call(version_number) if params[:extra_changes]
36
+
33
37
  sh("git checkout -b release/#{version_number}") if params[:create_pull_request]
34
38
 
35
39
  commit_changes(version_number)
@@ -62,7 +66,8 @@ module Fastlane
62
66
  name: version_number,
63
67
  tag_name: version_number,
64
68
  description: changes,
65
- commitish: ENV['BRANCH_NAME'] || other_action.git_branch
69
+ commitish: ENV['BRANCH_NAME'] || other_action.git_branch,
70
+ upload_assets: params[:upload_assets]
66
71
  )
67
72
 
68
73
  podspecs.each { |podspec| other_action.pod_push_safely(podspec: podspec) }
@@ -73,7 +78,7 @@ module Fastlane
73
78
 
74
79
  def self.ensure_everything_is_set_up(params)
75
80
  other_action.ensure_git_branch(branch: 'main') if params[:publish_release]
76
- other_action.ensure_git_status_clean
81
+ other_action.ensure_git_status_clean unless params[:skip_git_status_check]
77
82
 
78
83
  UI.user_error!('Please set GITHUB_TOKEN environment value.') if params[:github_token].nil?
79
84
 
@@ -128,6 +133,12 @@ module Fastlane
128
133
  UI.user_error!("SDK names array has to be specified") unless sdks.kind_of?(Array) && sdks.size.positive?
129
134
  end
130
135
  ),
136
+ FastlaneCore::ConfigItem.new(
137
+ key: :podspec_names,
138
+ description: 'Podspec names to release',
139
+ is_string: false,
140
+ optional: true
141
+ ),
131
142
  FastlaneCore::ConfigItem.new(
132
143
  env_name: 'GITHUB_REPOSITORY',
133
144
  key: :github_repo,
@@ -138,6 +149,12 @@ module Fastlane
138
149
  key: :github_token,
139
150
  description: 'GITHUB_TOKEN environment variable'
140
151
  ),
152
+ FastlaneCore::ConfigItem.new(
153
+ key: :skip_git_status_check,
154
+ description: 'Skip git status check',
155
+ is_string: false,
156
+ optional: true
157
+ ),
141
158
  FastlaneCore::ConfigItem.new(
142
159
  key: :changelog_path,
143
160
  env_name: 'FL_CHANGELOG_PATH',
@@ -145,6 +162,12 @@ module Fastlane
145
162
  is_string: true,
146
163
  default_value: './CHANGELOG.md'
147
164
  ),
165
+ FastlaneCore::ConfigItem.new(
166
+ key: :extra_changes,
167
+ description: 'Lambda with extra changes to be commited to the release',
168
+ is_string: false,
169
+ default_value: false
170
+ ),
148
171
  FastlaneCore::ConfigItem.new(
149
172
  key: :create_pull_request,
150
173
  description: 'Create pull request from release branch to main',
@@ -162,6 +185,12 @@ module Fastlane
162
185
  description: 'Publish release to GitHub and CocoaPods',
163
186
  is_string: false,
164
187
  default_value: false
188
+ ),
189
+ FastlaneCore::ConfigItem.new(
190
+ key: :upload_assets,
191
+ description: 'Path to assets to be uploaded with the release',
192
+ is_string: false,
193
+ optional: true
165
194
  )
166
195
  ]
167
196
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream