Skip to content

Commit

Permalink
Use the Bump module instead of shelling out to bump (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: James Couball <couballj@yahooinc.com>
  • Loading branch information
jcouball and James Couball committed Jan 20, 2022
1 parent e85fbc8 commit a2331ca
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions bin/create_release
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,8 @@ class ReleaseCreator
print 'Updating version...'
message, status = Bump::Bump.run(options.release_type, commit: false)
error 'Could not bump version' unless status == 0
version_file = `bump file`.chomp
if $CHILD_STATUS.success?
puts 'OK'
else
error 'Could not get version file'
end
`git add #{version_file}`
version_file = Bump::Bump.file
`git add '#{version_file}'`
if $CHILD_STATUS.success?
puts 'OK'
else
Expand Down

0 comments on commit a2331ca

Please sign in to comment.