Skip to content

Commit

Permalink
actions/sync/shared-config: fix docs/.rubocop.yml syncing.
Browse files Browse the repository at this point in the history
This needs the path fixed up so it's not the same as Homebrew/brew.
  • Loading branch information
MikeMcQuaid committed Aug 23, 2024
1 parent a685cf7 commit f5942a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5942a3

Please sign in to comment.