We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12875ed + be28e36 commit a2f5bfdCopy full SHA for a2f5bfd
.github/actions/sync/shared-config.rb
@@ -207,6 +207,13 @@ def git(*args)
207
208
target_path = target_directory_path/"Library/Homebrew/#{ruby_version}" if repository_name == "brew"
209
210
+ if target_path.exist?
211
+ target_ruby_version = target_path.read.chomp
212
+
213
+ # Don't downgrade the Ruby version even if Portable Ruby was downgraded.
214
+ next if Gem::Version.new(homebrew_ruby_version) < Gem::Version.new(target_ruby_version)
215
+ end
216
217
target_path.write("#{homebrew_ruby_version}\n")
218
when rubocop_yaml
219
next if custom_rubocop_repos.include?(repository_name)
0 commit comments