From cfee1416edeea63953c5d877ccbef7ad95a62d15 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 6 Jun 2024 19:16:03 +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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index de5e865c..51c57d53 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -70,6 +70,8 @@ def git(*args) when ruby_version next if custom_ruby_version_repos.include?(repository_name) + target_path = target_directory_path/"Library/Homebrew/#{ruby_version}" if repository_name == "brew" + target_path.write("#{homebrew_ruby_version}\n") when rubocop_yml next if custom_rubocop_repos.include?(repository_name)