Skip to content

Commit

Permalink
actions/sync: fix docs subpaths.
Browse files Browse the repository at this point in the history
Some directory names were being incorrectly omitted.
  • Loading branch information
MikeMcQuaid committed Jun 11, 2024
1 parent 64f900c commit b44f7eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b44f7eb

Please sign in to comment.