fastlane-plugin-stream_actions 0.4.16 → 0.4.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: 026ec8f8ee8ff9ab781bd947a48ce316225ca8f933f86e1870e095cd44c1ab18
4
- data.tar.gz: 83ed49f3b21c9ca683823b56c8e71b067211d01de73a5f9fffcf41b27c03f02f
3
+ metadata.gz: 46352486158d9628e7e172f2df0b4ab29f6b0ac575e66fd8fe8c92a014c43b42
4
+ data.tar.gz: fad45a69555125e8bc8b55e026e47b1fb35348450abdcc0357c176c57a4ecd21
5
5
  SHA512:
6
- metadata.gz: 3c73fcd00f53e169c3708a7f0205528175806fc739385f99a1ed3a5ccf0c90e7b25f218f556bced3bf3c54c59f8cf887e7200e492249f109b29f6e312d72c98f
7
- data.tar.gz: c0bd2912bd7414870a310a4b20236b548adb0a35f23d05efa7e731052087cfe2549583d5c437ca70eff6346938a4248596cc9cd62e52ab49b24eb1e41128af1b
6
+ metadata.gz: 9a5a36c1870b78a0764e92eaf5a6374b189df978c29b116815622cd123a5c48588408170265724c9601c2e607589ed5a1c93e8fcc012152d6ced161363511fa7
7
+ data.tar.gz: 1f15575af4166ba23aa48d292bd0e1590a58b1094c8a3678235531af6727b8a384264f18f194c534555b0b47d91a72a8250f1c132dc762d012ad99fc0ac64f12
@@ -17,7 +17,8 @@ module Fastlane
17
17
  version_number
18
18
  end
19
19
 
20
- other_action.set_github_release(
20
+ make_latest = params[:make_latest]
21
+ release = other_action.set_github_release(
21
22
  repository_name: params[:github_repo],
22
23
  api_token: params[:github_token],
23
24
  name: version_number,
@@ -25,8 +26,10 @@ module Fastlane
25
26
  description: changes,
26
27
  commitish: other_action.current_branch,
27
28
  upload_assets: params[:upload_assets],
28
- is_prerelease: version_number.downcase.include?('beta')
29
+ is_prerelease: version_number.downcase.include?('beta'),
30
+ is_draft: !make_latest
29
31
  )
32
+ publish_without_marking_latest(params, release) unless make_latest
30
33
  end
31
34
 
32
35
  unless skip_pods
@@ -43,6 +46,19 @@ module Fastlane
43
46
  other_action.ensure_git_status_clean unless params[:skip_git_status_check]
44
47
  end
45
48
 
49
+ # GitHub marks a release as Latest when it is created, so a release that must not be Latest
50
+ # (e.g. a patch of an older major version) is created as a draft and published with `make_latest: false`.
51
+ def self.publish_without_marking_latest(params, release)
52
+ UI.user_error!('Failed to create the GitHub release') unless release.kind_of?(Hash) && release['id']
53
+
54
+ other_action.github_api(
55
+ api_token: params[:github_token],
56
+ http_method: 'PATCH',
57
+ path: "repos/#{params[:github_repo]}/releases/#{release['id']}",
58
+ body: { draft: false, make_latest: 'false' }
59
+ )
60
+ end
61
+
46
62
  def self.ensure_release_tag_is_new(version_number)
47
63
  if other_action.git_tag_exists(tag: version_number)
48
64
  UI.user_error!("Tag for version #{version_number} already exists!")
@@ -132,6 +148,13 @@ module Fastlane
132
148
  is_string: true,
133
149
  optional: true
134
150
  ),
151
+ FastlaneCore::ConfigItem.new(
152
+ key: :make_latest,
153
+ description: 'Mark the GitHub release as Latest? Pass false for releases of an older major version',
154
+ is_string: false,
155
+ optional: true,
156
+ default_value: true
157
+ ),
135
158
  FastlaneCore::ConfigItem.new(
136
159
  key: :upload_assets,
137
160
  description: 'Path to assets to be uploaded with the release',
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.4.16'
3
+ VERSION = '0.4.17'
4
4
  end
5
5
  end
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.4.16
4
+ version: 0.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
11
+ date: 2026-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list