fastlane/lib/fastlane/actions/get_certificates.rb in fastlane_hotfix-2.165.1 vs fastlane/lib/fastlane/actions/get_certificates.rb in fastlane_hotfix-2.187.0

- old
+ new

@@ -10,11 +10,15 @@ require 'cert' return if Helper.test? begin + # Only set :api_key from SharedValues if :api_key_path isn't set (conflicting options) + unless params[:api_key_path] + params[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY] + end + Cert.config = params # we alread have the finished config - Cert.config[:api_key] ||= Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY] Cert::Runner.new.launch cert_file_path = ENV["CER_FILE_PATH"] certificate_id = ENV["CER_CERTIFICATE_ID"] Actions.lane_context[SharedValues::CERT_FILE_PATH] = cert_file_path