From a3206a7700504478980205eaaa0469427dd86f71 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 6 Jun 2024 19:12:51 +0100 Subject: [PATCH] sync/shared-config: move brew's ruby version to Library/Homebrew. This will avoid issues with `#!/usr/bin/env ruby` shebangs in Homebrew's prefix. --- .github/actions/sync/shared-config.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index de5e865c..675ff322 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -70,6 +70,10 @@ def git(*args) when ruby_version next if custom_ruby_version_repos.include?(repository_name) + if repository_name == "brew" + target_path = target_directory_path/"Library/Homebrew/#{ruby_version}" + end + target_path.write("#{homebrew_ruby_version}\n") when rubocop_yml next if custom_rubocop_repos.include?(repository_name)