From b44f7eb81a965aac9f26db9a665e781d88b5ba49 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 11 Jun 2024 12:03:16 +0100 Subject: [PATCH] actions/sync: fix docs subpaths. Some directory names were being incorrectly omitted. --- .github/actions/sync/shared-config.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index c8a510bc..3ff3d864 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -118,9 +118,11 @@ def git(*args) next if docs_path.directory? next if rejected_docs_basenames.include?(docs_path_basename) - target_docs_path = target_path/docs_path_basename + docs_path_subpath = docs_path.to_s.delete_prefix("#{homebrew_docs}/") + target_docs_path = target_path/docs_path_subpath next if docs_path.extname == ".png" next if docs_path.extname == ".md" && !target_docs_path.exist? + next if target_docs_path.to_s.include?("vendor") target_docs_path.dirname.mkpath FileUtils.cp docs_path, target_docs_path