From f5942a301730b482aba8885a2c118404f5a61cf6 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 23 Aug 2024 15:39:22 +0100 Subject: [PATCH] actions/sync/shared-config: fix docs/.rubocop.yml syncing. This needs the path fixed up so it's not the same as Homebrew/brew. --- .github/actions/sync/shared-config.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index 606ca7ab..7139931a 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -139,6 +139,11 @@ def git(*args) Dir.chdir target_path do FileUtils.ln_s "../#{docs_path_basename}", "." end + elsif docs_path_basename == ".rubocop.yml" + docs_rubocop = docs_path.read + .sub("inherit_from: ../Library/.rubocop.yml", + "inherit_from: ../.rubocop.yml") + target_docs_path.write(docs_rubocop) else FileUtils.cp docs_path, target_docs_path end