Created
March 25, 2018 16:12
-
-
Save tmtrademarked/939d0e1175e07851e4284de3a7d9100d to your computer and use it in GitHub Desktop.
Preparing version notes for upload via supply
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 "Move the release notes to the correct location" | |
private_lane :prepare_release_notes do | |
versions = google_play_track_version_codes( | |
package_name: "com.blueapron.blueapron.release", | |
track: "rollout" | |
) | |
metadata_dir="blueapron-release/en-US/changelogs" | |
sh("cp #{metadata_dir}/CURRENT_VERSION.txt #{metadata_dir}/#{versions[0]}.txt") | |
# Create a new branch and upload a PR for it. | |
sh("git checkout master; git pull") | |
sh("git checkout -b release_notes_#{versions[0]}") | |
sh("git add #{metadata_dir}; git commit -m '#{versions[0]} release notes'") | |
sh("hub pull-request -p -m '#{versions[0]} release notes\n\nUpdating the release notes for release #{versions[0]}'") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment