Skip to content

Commit

Permalink
Check remote tag before release:new
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Halligon committed Jul 21, 2017
1 parent 95fe8ad commit 7056046
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ namespace :release do
changelog_master = system(%q{grep -qi '^## Master' CHANGELOG.md})
results << Utils.table_result(!changelog_master, "CHANGELOG, No master", 'Please remove entry for master in CHANGELOG')

tag_set = !(`git ls-remote --tags . refs/tags/#{podspec_version}`.empty?)
results << Utils.table_result(tag_set, "Tag pushed", 'Please create a tag and push it')

exit 1 unless results.all?

print "Release version #{podspec_version} [Y/n]? "
Expand Down

0 comments on commit 7056046

Please sign in to comment.