Skip to content

Commit

Permalink
actions/sync: fix copying of vale.ini files.
Browse files Browse the repository at this point in the history
The location was previously incorrect.
  • Loading branch information
MikeMcQuaid committed Jun 11, 2024
1 parent 45d248f commit 10ef34a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/actions/sync/shared-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def git(*args)
key.match?(%r{\Arequire|inherit_from|inherit_mode|Cask/|Formula|Homebrew|Performance/|RSpec|Sorbet/})
end.to_yaml
homebrew_docs_workflow_yaml = homebrew_repository_path/docs_workflow_yaml
homebrew_vale_ini = homebrew_repository_path/vale_ini

dependabot_config_yaml = YAML.load_file(dependabot_yaml)
dependabot_config_yaml["updates"].select! do |update|
Expand Down Expand Up @@ -124,14 +125,22 @@ def git(*args)
target_docs_path.dirname.mkpath
FileUtils.cp docs_path, target_docs_path
end
when docs_workflow_yaml, vale_ini
when docs_workflow_yaml
next if custom_docs_repos.include?(repository_name)

docs_path = target_directory_path/docs
next unless docs_path.exist?
next unless docs_path.directory?

FileUtils.cp homebrew_docs_workflow_yaml, target_path
when vale_ini
next if custom_docs_repos.include?(repository_name)

docs_path = target_directory_path/docs
next unless docs_path.exist?
next unless docs_path.directory?

FileUtils.cp homebrew_vale_ini, target_path
when ruby_version
next if custom_ruby_version_repos.include?(repository_name)

Expand Down

0 comments on commit 10ef34a

Please sign in to comment.