From 09324fffb434afe2e1037d48339870c556190602 Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Wed, 2 Oct 2024 23:51:18 -0400 Subject: [PATCH] Fix get_api_key --- .../helper/ddg_apple_automation_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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