Created
April 13, 2019 12:33
-
-
Save yukin01/a7ce3e8eefc4ae04058c857902b173d9 to your computer and use it in GitHub Desktop.
Custom Slack Action for Fastlane
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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