Skip to content

Commit

Permalink
Fix version bumping script
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Mar 29, 2021
1 parent bf77f9e commit 9cd092e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sentry-raven/.craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ github:
owner: getsentry
repo: sentry-ruby
changelogPolicy: simple
preReleaseCommand: ruby ../.scripts/bump-version.rb
preReleaseCommand: ruby .scripts/bump-version.rb
releaseBranchPrefix: release-sentry-raven
statusProvider:
name: github
Expand Down
5 changes: 5 additions & 0 deletions sentry-raven/.scripts/bump-version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
file_name = "lib/raven/version.rb"

text = File.read(file_name)
new_contents = text.gsub(/VERSION = ".*"/, "VERSION = \"#{ARGV[1]}\"")
File.open(file_name, "w") {|file| file.puts new_contents }

0 comments on commit 9cd092e

Please sign in to comment.