fix: update promote action to make supply working on promote #30
| @ -7,12 +7,12 @@ module Fastlane | |||||||
|       def self.run(params) |       def self.run(params) | ||||||
|         # Check from parameters |         # Check from parameters | ||||||
|         unless Helper::AndroidCdHelper.is_set(params[:from]) |         unless Helper::AndroidCdHelper.is_set(params[:from]) | ||||||
|           UI.user_error!("❌ Parameters from cannot be null") |           raise ArgumentError, "❌ Parameters from cannot be null" | ||||||
|         end |         end | ||||||
| 
 | 
 | ||||||
|         # Check destination parameters |         # Check destination parameters | ||||||
|         unless Helper::AndroidCdHelper.is_set(params[:destination]) |         unless Helper::AndroidCdHelper.is_set(params[:destination]) | ||||||
|           UI.user_error!("❌ Parameters destination cannot be null") |           raise ArgumentError, "❌ Parameters destination cannot be null" | ||||||
|         end |         end | ||||||
| 
 | 
 | ||||||
|         UI.message("⌛️ Promoting to Google Play Store from #{params[:from]} to #{params[:destination]}..") |         UI.message("⌛️ Promoting to Google Play Store from #{params[:from]} to #{params[:destination]}..") | ||||||
| @ -23,6 +23,7 @@ module Fastlane | |||||||
|         # Upload the Android App Bundle to the Play Store |         # Upload the Android App Bundle to the Play Store | ||||||
|         other_action.upload_to_play_store( |         other_action.upload_to_play_store( | ||||||
|           track: params[:from], |           track: params[:from], | ||||||
|  |           track_promote_to: params[:destination], | ||||||
|           json_key: './service_account_key.json', |           json_key: './service_account_key.json', | ||||||
|           skip_upload_apk: true, |           skip_upload_apk: true, | ||||||
|           skip_upload_aab: true, |           skip_upload_aab: true, | ||||||
| @ -32,6 +33,10 @@ module Fastlane | |||||||
|           skip_upload_screenshots: true |           skip_upload_screenshots: true | ||||||
|         ) |         ) | ||||||
| 
 | 
 | ||||||
|  |         # Delete artifacts files | ||||||
|  |         artifacts = ['android_keys.zip', 'key.jks', 'key.properties', 'service_account_key.json'] | ||||||
|  |         Helper::AndroidCdHelper.delete_artifacts(artifacts) | ||||||
|  | 
 | ||||||
|         UI.success('🍺 Successfully promote appbundle to Google Play Store') |         UI.success('🍺 Successfully promote appbundle to Google Play Store') | ||||||
|       end |       end | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user