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: fix copying of vale.ini files. #125

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
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