From db8001a40434087dd757f32151abe38b51102307 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Fri, 14 Jun 2024 00:03:13 +0100 Subject: [PATCH] actions/sync/shared-config: align Bundler version with Homebrew/brew --- .github/actions/sync/shared-config.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index 39acac28..fd2d7fcb 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -180,8 +180,10 @@ def git(*args) # We don't have Homebrew exclude? method here. if !custom_ruby_version_repos.include?(repository_name) && (target_directory_path/"Gemfile.lock").exist? Dir.chdir target_directory_path do + require "bundler" + bundler_version = Bundler.definition.locked_gems.bundler_version puts "Running bundle install..." - system "bundle update --ruby --bundler --quiet >/dev/null" + system "bundle", "update", "--ruby", "--bundler=#{bundler_version}", "--quiet", out: "/dev/null" end end # rubocop:enable Homebrew/NegateInclude