Skip to content

Commit

Permalink
actions/sync/shared-config: align Bundler version with Homebrew/brew
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Jun 13, 2024
1 parent 865caaf commit db8001a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db8001a

Please sign in to comment.