We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 291bee3 commit 572ec20Copy full SHA for 572ec20
1 file changed
lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb
@@ -423,6 +423,13 @@ def validate_release_assets!(assets)
423
asset_paths = Array(assets)
424
UI.user_error!('You must provide at least one release asset') if asset_paths.empty?
425
426
+ asset_paths.each do |file_path|
427
+ UI.user_error!('release_assets must contain file paths') unless file_path.is_a?(String) && !file_path.empty?
428
+ end
429
+
430
+ file_names = asset_paths.map { |file_path| File.basename(file_path) }
431
+ UI.user_error!('release_assets must not contain duplicate filenames') if file_names.uniq.length != file_names.length
432
433
asset_paths.each do |file_path|
434
UI.user_error!("Can't find file #{file_path}!") unless File.file?(file_path)
435
end
0 commit comments