diff --git a/apps/amiapp_flutter/fastlane/Fastfile b/apps/amiapp_flutter/fastlane/Fastfile index ed0aad7..f79e386 100644 --- a/apps/amiapp_flutter/fastlane/Fastfile +++ b/apps/amiapp_flutter/fastlane/Fastfile @@ -22,7 +22,9 @@ lane :generate_new_version do |options| app_version_code = time_in_millis UI.message("Generated new versions => SDK: #{sdk_version_name}, App: #{app_version_name} (#{app_version_code})") - puts SDK_VERSION_NAME: sdk_version_name, APP_VERSION_NAME: app_version_name, APP_VERSION_CODE: app_version_code.to_s + puts "::set-output name=SDK_VERSION_NAME::#{sdk_version_name}" + puts "::set-output name=APP_VERSION_NAME::#{app_version_name}" + puts "::set-output name=APP_VERSION_CODE::#{app_version_code}" end # Helper method to update pubspec version @@ -85,7 +87,7 @@ lane :update_flutter_sdk_version do |options| project_path = options[:project_path] || File.join(Dir.pwd, '../../..') version_name = options[:version_name] || ENV['SDK_VERSION_NAME'] - UI.message("Updating sdk version to #{sdk_version_name} in #{project_path}") + UI.message("Updating sdk version to #{version_name} in #{project_path}") UI.message("Env vars => SDK_VERSION_NAME: #{ENV['SDK_VERSION_NAME']}, APP_VERSION_NAME: #{ENV['APP_VERSION_NAME']}, APP_VERSION_CODE: #{ENV['APP_VERSION_CODE']}") update_pubspec_version(project_path, version_name)