diff --git a/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb index c544b4f..0622328 100644 --- a/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb @@ -237,7 +237,7 @@ def self.fetch_appcast_build_number(platform) def self.fetch_testflight_build_number(platform, options, other_action) other_action.latest_testflight_build_number( - api_key: get_api_key, + api_key: get_api_key(other_action), username: get_username(options), platform: platform ) @@ -266,7 +266,7 @@ def self.get_username(options) elsif options[:username] options[:username] else - git_user_email = `git", "config", "user.email"`.chomp + git_user_email = `git config user.email`.chomp if git_user_email.end_with?("@duckduckgo.com") git_user_email end