Skip to content

Instantly share code, notes, and snippets.

@yukin01
Created April 13, 2019 12:33
Show Gist options
  • Save yukin01/a7ce3e8eefc4ae04058c857902b173d9 to your computer and use it in GitHub Desktop.
Save yukin01/a7ce3e8eefc4ae04058c857902b173d9 to your computer and use it in GitHub Desktop.
Custom Slack Action for Fastlane
# vim: syntax=ruby
private_lane :custom_slack do |options|
ENV["TZ"] = "Asia/Tokyo"
slack(
message: options.fetch(:message, "No messages"),
success: options.fetch(:success, true),
slack_url: "hoge",
payload: {
"Build Date" => Time.new.to_s,
"Built by" => is_ci? ? "Bitrise" : "Local",
},
default_payloads: [:git_branch, :git_author],
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment