Skip to content

Commit ee37499

Browse files
committed
Fix README auto update for preview/RC
1 parent a5e2883 commit ee37499

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This action currently supports these versions of MRI, JRuby and TruffleRuby:
1515

1616
| Interpreter | Versions |
1717
| ----------- | -------- |
18-
| `ruby` | 1.9.3, 2.0.0, 2.1.9, 2.2, all versions from 2.3.0 until 3.2.0-preview1, head, debug, mingw, mswin, ucrt |
18+
| `ruby` | 1.9.3, 2.0.0, 2.1.9, 2.2, all versions from 2.3.0 until 3.2.0-rc1, head, debug, mingw, mswin, ucrt |
1919
| `jruby` | 9.1.17.0 - 9.4.0.0, head |
2020
| `truffleruby` | 19.3.0 - 22.3.0, head |
2121
| `truffleruby+graalvm` | 21.2.0 - 22.3.0, head |

new-versions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
file = "#{__dir__}/README.md"
5454
lines = File.readlines(file)
5555
engine_line = lines.find { |line| line.start_with?("| `#{engine}`") }
56-
engine_line.sub!(/(.+ (?:-|until)) (\d+(?:\.\d+)+)/) do
56+
engine_line.sub!(/(.+ (?:-|until)) (\d+(?:\.\d+)+(?:-\w+)?)/) do
5757
if Gem::Version.new(version) > Gem::Version.new($2)
5858
"#{$1} #{version}"
5959
else

0 commit comments

Comments
 (0)