Fastlane upload_file_to_s3 to use all files that match the extension (#5941) (#5942)

(cherry picked from commit b1b43ef000)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build
2022-02-08 12:31:29 +01:00
committed by GitHub
parent f0390f2463
commit a833a936e2

View File

@@ -188,7 +188,7 @@ lane :upload_file_to_s3 do |options|
files.push("#{build_folder_path}/#{options[:file]}")
else
extensions.each do |extension|
files.push(Dir.glob("#{build_folder_path}/#{extension}").select { |f| File.file? f}.first)
files.push(*Dir.glob("#{build_folder_path}/#{extension}").select { |f| File.file? f})
end
end