From 423b103d11d01ce2a3ec1aae604e27900fddb5c5 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 11 Jun 2024 16:59:23 +0100 Subject: [PATCH] actions/sync/shared-config: don't run bundle for custom rubies. Ensure that we're only going to do this in cases where we actually know that we have the correct Ruby version. --- .github/actions/sync/shared-config.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index a18b394d..b6b4992e 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -67,6 +67,7 @@ def git(*args) custom_ruby_version_repos = %w[ mass-bottling-tracker-private + ruby-macho ].freeze custom_rubocop_repos = %w[ ci-orchestrator @@ -174,7 +175,7 @@ def git(*args) end # Update Gemfile.lock if it exists, based on the Ruby version. -if (target_directory_path/"Gemfile.lock").exist? +if !custom_ruby_version_repos.include?(repository_name) && (target_directory_path/"Gemfile.lock").exist? Dir.chdir target_directory_path do puts "Running bundle install..." system "bundle update --ruby --bundler --quiet >/dev/null"