Skip to content

Commit

Permalink
actions/sync: more docs tweaks.
Browse files Browse the repository at this point in the history
- also sync `.vale.ini` file
- don't sync `ruby-macho` docs, as they are not a Jekyll site
  • Loading branch information
MikeMcQuaid committed Jun 11, 2024
1 parent e90b7a1 commit d4db02c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def git(*args)
rubocop_yaml = ".rubocop.yml"
dependabot_yaml = ".github/dependabot.yml"
docs_workflow_yaml = ".github/workflows/docs.yml"
vale_ini = ".vale.ini"

homebrew_docs = homebrew_repository_path/docs
homebrew_ruby_version =
Expand Down Expand Up @@ -80,6 +81,7 @@ def git(*args)
custom_docs_repos = %w[
brew
rubydoc.brew.sh
ruby-macho
].freeze
rejected_docs_basenames = %w[
_config.yml
Expand All @@ -91,10 +93,11 @@ def git(*args)
puts "Detecting changes…"
[
docs,
docs_workflow_yaml,
vale_ini,
ruby_version,
rubocop_yaml,
dependabot_yaml,
docs_workflow_yaml,
".github/workflows/lock-threads.yml",
".github/workflows/stale-issues.yml",
].each do |path|
Expand All @@ -121,7 +124,7 @@ def git(*args)
target_docs_path.dirname.mkpath
FileUtils.cp docs_path, target_docs_path
end
when docs_workflow_yaml
when docs_workflow_yaml, vale_ini
next if custom_docs_repos.include?(repository_name)

docs_path = target_directory_path/docs
Expand Down

0 comments on commit d4db02c

Please sign in to comment.