Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions/sync: more docs tweaks. #124

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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