Skip to content

Instantly share code, notes, and snippets.

@xotahal
Created March 19, 2019 03:37
Show Gist options
  • Save xotahal/c6b851d28aefa4817d999ab4ea45a95f to your computer and use it in GitHub Desktop.
Save xotahal/c6b851d28aefa4817d999ab4ea45a95f to your computer and use it in GitHub Desktop.
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