Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ platform :ios do
commit_info = last_git_commit
commit_hash = ENV['GITHUB_SHA']&.slice(0, 7) || commit_info[:abbreviated_commit_hash]

UI.message("📝 Branch: #{branch_name}, Commit: #{commit_hash}")
# Get build number
build_num = get_build_number(xcodeproj: "CD starter project.xcodeproj")
build_date = Time.now.strftime('%b %d, %Y')

# Build changelog with branch and commit info
changelog_text = "Branch: #{branch_name}\n" +
"Commit: #{commit_hash}\n\n" +
"Automated build from CI/CD pipeline"
UI.message("📝 Branch: #{branch_name}, Commit: #{commit_hash}, Build: #{build_num}")

# Build changelog - concise format
changelog_text = "#{branch_name} (#{commit_hash})\n" +
"Build ##{build_num} • #{build_date}"

testflight(
username: ENV["FASTLANE_USERNAME"],
Expand Down
Loading