Skip to content

Commit e21afbe

Browse files
authored
Merge pull request #141 from OpenVoxProject/fix-release-action
Fix the release action
2 parents f25155c + 0047aa7 commit e21afbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/vox.rake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ namespace :vox do
99
puts "Setting version to #{version}"
1010

1111
data = File.read('lib/puppet/version.rb')
12-
new_data = data.sub(/PUPPETVERSION = '\d+\.\d+\.\d+'/, "PUPPETVERSION = '#{version}'")
13-
raise 'Failed to update version in lib/puppet/version.rb' if data == new_data
12+
new_data = data.sub(/PUPPETVERSION = '\d+\.\d+\.\d+(\.rc\d+)?'/, "PUPPETVERSION = '#{version}'")
13+
warn 'Failed to update version in lib/puppet/version.rb' if data == new_data
1414

1515
File.write('lib/puppet/version.rb', new_data)
1616

1717
data = File.read('openvox.gemspec')
18-
new_data = data.sub(/spec.version = "\d+\.\d+\.\d+"/, "spec.version = \"#{version}\"")
19-
raise 'Failed to update version in openvox.gemspec' if data == new_data
18+
new_data = data.sub(/spec.version = "\d+\.\d+\.\d+(\.rc\d+)?"/, "spec.version = \"#{version}\"")
19+
warn 'Failed to update version in openvox.gemspec' if data == new_data
2020

2121
File.write('openvox.gemspec', new_data)
2222
end

0 commit comments

Comments
 (0)