From e23a0130f8bbcc47eec0037dab8c60c56036c802 Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Fri, 13 Feb 2026 21:09:16 -0800 Subject: [PATCH] Synchronize `ruby-version` to `ruby-macho` --- .github/actions/sync/shared-config.rb | 10 +--------- .github/workflows/sync-shared-config.yml | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index 026afca3..6f8929fb 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -113,9 +113,6 @@ def git(*args) end dependabot_config = dependabot_config_yaml.to_yaml -custom_ruby_version_repos = %w[ - ruby-macho -].freeze custom_rubocop_repos = %w[ ci-orchestrator-private ruby-macho @@ -207,8 +204,6 @@ def git(*args) "#{contents}\n", ) 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" if target_path.exist? @@ -260,9 +255,7 @@ def git(*args) # Update Gemfile.lock if it exists, based on the Ruby version. # # We don't need to sync Gemfiles in Homebrew/brew because they are the source of truth. -# We don't have Homebrew exclude? method here. -# rubocop:disable Homebrew/NegateInclude -if !custom_ruby_version_repos.include?(repository_name) && repository_name != "brew" +if repository_name != "brew" target_gemfile_locks.each do |target_gemfile_lock| target_directory_path = target_gemfile_lock.dirname Dir.chdir target_directory_path do @@ -278,7 +271,6 @@ def git(*args) end end end -# rubocop:enable Homebrew/NegateInclude out, err, status = Open3.capture3("git", "-C", target_directory, "status", "--porcelain", "--ignore-submodules=dirty") raise err unless status.success? diff --git a/.github/workflows/sync-shared-config.yml b/.github/workflows/sync-shared-config.yml index fa0adcf6..d1864b70 100644 --- a/.github/workflows/sync-shared-config.yml +++ b/.github/workflows/sync-shared-config.yml @@ -45,12 +45,12 @@ jobs: Homebrew/discussions Homebrew/formulae.brew.sh Homebrew/glibc-bootstrap + Homebrew/homebrew-brew-vulns Homebrew/homebrew-cask Homebrew/homebrew-core Homebrew/install Homebrew/private Homebrew/ruby-macho - Homebrew/homebrew-brew-vulns ) if [[ "${SKIP_PRIVATE}" == true ]]; then read -r -a repositories <<< "${repositories[@]//*private}"