Skip to content

Commit b1718fc

Browse files
Skip patch if older
1 parent f36401f commit b1718fc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.5
1+
3.4.7

bin/update_from_core_release

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ if next_version == current_version
2727
exit 1
2828
end
2929

30+
if next_version < current_version
31+
puts "Version #{next_version} is older. Skipping previous patch release."
32+
exit 1
33+
end
34+
3035
# Get the bump type (major, minor, patch)
3136
bump_type = version_bump(current_version, next_version)
3237
raise ArgumentError.new("Failed to find version bump") if bump_type.nil?

0 commit comments

Comments
 (0)