Created
March 19, 2019 03:37
-
-
Save xotahal/c6b851d28aefa4817d999ab4ea45a95f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
desc "Generates release notes for slack and create the next tag" | |
lane :post_deploy do |options| | |
flavor = options[:flavor] | |
title = options[:title] | |
next_version = lane_context[SharedValues::RELEASE_NEXT_VERSION] | |
# Get release notes since last version for slack | |
notes = conventional_changelog(title: title, format: 'slack') | |
# Create tag to recognize future "last version" (the current version) | |
add_git_tag(tag: "ios/#{flavor}/#{next_version}/#{build_number}") | |
push_git_tags | |
slack(message: notes) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment