fastlane-plugin-stream_actions 0.4.23 → 0.4.24
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 +4 -4
- data/lib/fastlane/plugin/stream_actions/actions/pr_create.rb +7 -2
- data/lib/fastlane/plugin/stream_actions/actions/publish_ios_sdk.rb +3 -2
- data/lib/fastlane/plugin/stream_actions/actions/release_ios_sdk.rb +10 -2
- data/lib/fastlane/plugin/stream_actions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bbc79a06fcf9cce94c4465b30ca64213c0f159d0bdcef27072c31c335a1d80f8
|
|
4
|
+
data.tar.gz: 8cbebf3337a4768d952fa040043362e6ed4e5a33304bfa5929f43f27d173ffc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e080115972ff3b2786ba18f6016fe525fe38ee8acb92214d92a17e04636f818c007e8d72b4720434a81cfd324143e46860f07fdd09487cf0642ee97d39d0d3ed
|
|
7
|
+
data.tar.gz: 8e3664452bc16e3774ee9fd774df675e07545b9c334b3d1bf23234cde342c69087ab1be781c9ef7731cd73ec65a6c9d34408f2d4f3a40d2ea8800fd0c6abbf9a
|
|
@@ -17,14 +17,19 @@ module Fastlane
|
|
|
17
17
|
body = 'This PR was created automatically by CI.'
|
|
18
18
|
body += "\n\nTriggered by: #{run_url}" if run_url
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
# `api_bearer`, because GitHub App tokens do not authenticate with the Basic scheme of `api_token`.
|
|
21
|
+
pull_request = other_action.create_pull_request(
|
|
22
|
+
api_bearer: ENV.fetch('GITHUB_TOKEN'),
|
|
22
23
|
repo: params[:github_repo],
|
|
23
24
|
title: params[:title],
|
|
24
25
|
head: params[:head_branch],
|
|
25
26
|
base: params[:base_branch],
|
|
26
27
|
body: body
|
|
27
28
|
)
|
|
29
|
+
# `create_pull_request` only logs a failed request and returns nil.
|
|
30
|
+
unless pull_request
|
|
31
|
+
UI.user_error!("Failed to create the pull request. The branch #{params[:head_branch]} is already pushed.")
|
|
32
|
+
end
|
|
28
33
|
end
|
|
29
34
|
end
|
|
30
35
|
|
|
@@ -20,7 +20,8 @@ module Fastlane
|
|
|
20
20
|
make_latest = params[:make_latest]
|
|
21
21
|
release = other_action.set_github_release(
|
|
22
22
|
repository_name: params[:github_repo],
|
|
23
|
-
api_token
|
|
23
|
+
# `api_bearer`, because GitHub App tokens do not authenticate with the Basic scheme of `api_token`.
|
|
24
|
+
api_bearer: params[:github_token],
|
|
24
25
|
name: version_number,
|
|
25
26
|
tag_name: version_number,
|
|
26
27
|
description: changes,
|
|
@@ -52,7 +53,7 @@ module Fastlane
|
|
|
52
53
|
UI.user_error!('Failed to create the GitHub release') unless release.kind_of?(Hash) && release['id']
|
|
53
54
|
|
|
54
55
|
other_action.github_api(
|
|
55
|
-
|
|
56
|
+
api_bearer: params[:github_token],
|
|
56
57
|
http_method: 'PATCH',
|
|
57
58
|
path: "repos/#{params[:github_repo]}/releases/#{release['id']}",
|
|
58
59
|
body: { draft: false, make_latest: 'false' }
|
|
@@ -45,14 +45,22 @@ module Fastlane
|
|
|
45
45
|
commit_changes(version_number)
|
|
46
46
|
|
|
47
47
|
if params[:create_pull_request]
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
# `api_bearer`, because GitHub App tokens do not authenticate with the Basic scheme of `api_token`.
|
|
49
|
+
pull_request = other_action.create_pull_request(
|
|
50
|
+
api_bearer: params[:github_token],
|
|
50
51
|
repo: params[:github_repo],
|
|
51
52
|
title: "#{version_number} Release",
|
|
52
53
|
head: "release/#{version_number}",
|
|
53
54
|
base: 'main',
|
|
54
55
|
body: changes.to_s
|
|
55
56
|
)
|
|
57
|
+
# `create_pull_request` only logs a failed request and returns nil.
|
|
58
|
+
unless pull_request
|
|
59
|
+
UI.user_error!(
|
|
60
|
+
"Failed to create the release pull request. The branch release/#{version_number} is already pushed: " \
|
|
61
|
+
'open the pull request by hand, or delete the branch before you start the release again.'
|
|
62
|
+
)
|
|
63
|
+
end
|
|
56
64
|
end
|
|
57
65
|
|
|
58
66
|
UI.success("Successfully started release #{version_number}! 🚢")
|
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.
|
|
4
|
+
version: 0.4.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GetStream
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: xctest_list
|