Skip to content

Commit

Permalink
Add environment to message
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Fabi committed Nov 11, 2024
1 parent e48ff5a commit 5ab3199
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ platform :ios do
version_tag = version + "-lava-" + build_number.to_s
add_git_tag(tag: version_tag)
push_git_tags(tag: version_tag)
sendSlackMessage(version: version_tag)
sendSlackMessage(version: version_tag, env: "lava")
end

desc "Push a new prod build to TestFlight"
Expand Down Expand Up @@ -124,7 +124,7 @@ platform :ios do
# e.g. 2.0.2
add_git_tag(tag: version)
push_git_tags(tag: version)
sendSlackMessage(version: version)
sendSlackMessage(version: version, env: "production")
end

lane :setupFastlaneSecrets do |options|
Expand Down Expand Up @@ -162,6 +162,7 @@ platform :ios do

slack_webhook_url = ENV['SLACK_WEB_HOOK_URL']
version = options[:version]
environment = options[:env]

json_body = <<-JSON
{
Expand All @@ -170,7 +171,7 @@ platform :ios do
"type": "header",
"text": {
"type": "plain_text",
"text": "🚀 New iOS release available",
"text": "🚀 New iOS #{environment} version available on TestFlight",
"emoji": true
}
},
Expand Down

0 comments on commit 5ab3199

Please sign in to comment.