Skip to content

Commit ea25659

Browse files
authored
internal: Fix the release script to use YYYY.MM.patch (#3807)
1 parent a3246ee commit ea25659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
now = Time.new
1111
(year, month, patch) = last_version.split('.').map{|x| x.to_i}
1212

13-
if year == now.year-2000 && month == now.month
13+
if year == now.year
1414
patch = patch + 1
1515
else
1616
patch = 0
1717
end
18-
default_version = "#{now.year-2000}.#{now.month}.#{patch}"
18+
default_version = "#{now.year}.#{now.month}.#{patch}"
1919
print "next version (default: #{default_version})? "
2020
next_version = STDIN.gets.chomp
2121

0 commit comments

Comments
 (0)