Skip to content

Commit db8f37c

Browse files
committed
refactor: api_key 자체를 넘기도록 개선
1 parent fe1a1e0 commit db8f37c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fastlane/Fastfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ platform :ios do
88
private_lane :fetch_latest_testflight_build_number do |options|
99
require "spaceship"
1010

11+
apiKey = options[:api_key]
1112
versionNumber = options[:version]
1213

14+
Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.create(**apiKey)
15+
1316
app = Spaceship::ConnectAPI::App.find(APP_IDENTIFIER)
1417
UI.user_error!("Could not find app for #{APP_IDENTIFIER}") if app.nil?
1518

@@ -57,6 +60,7 @@ platform :ios do
5760
)
5861

5962
latestTestflightBuildNumber = fetch_latest_testflight_build_number(
63+
api_key: api_key,
6064
version: versionNumber
6165
)
6266

0 commit comments

Comments
 (0)