Skip to content

Commit

Permalink
Fix how the version file update is added to git (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouball authored Jan 20, 2022
1 parent 2aa2a20 commit e85fbc8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/create_release
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,17 @@ class ReleaseCreator
print 'Updating version...'
message, status = Bump::Bump.run(options.release_type, commit: false)
error 'Could not bump version' unless status == 0
`git add lib/git/version.rb`
version_file = `bump file`.chomp
if $CHILD_STATUS.success?
puts 'OK'
else
error 'Could not stage changes to lib/git/version.rb'
error 'Could not get version file'
end
`git add #{version_file}`
if $CHILD_STATUS.success?
puts 'OK'
else
error "Could not stage changes to the version file '#{version_file}'"
end
end

Expand Down

0 comments on commit e85fbc8

Please sign in to comment.