Skip to content

Commit

Permalink
Allow third-party taps to include both casks and formulae.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jun 26, 2024
1 parent 6a40cd6 commit 24d8cdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/lib/changed_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def changed_files
modified_command_files = modified_files.select { |path| path.ascend.to_a.last.to_s == "cmd" }
modified_github_actions_files = modified_files.select { |path| path.to_s.start_with?(".github/actions/") }
modified_cask_files = modified_files.select { |path| cask_file?(path) }
modified_formula_files = modified_files.select { |path| formula_file?(path) }

{
modified_files:,
Expand All @@ -32,6 +33,7 @@ def changed_files
modified_command_files:,
modified_github_actions_files:,
modified_cask_files:,
modified_formula_files:,
}
end
end
2 changes: 2 additions & 0 deletions cmd/lib/ci_matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def self.generate(tap, labels: [], cask_names: [], skip_install: false, new_cask
ruby_files_in_wrong_directory =
changed_files[:modified_ruby_files] - (
changed_files[:modified_cask_files] +
# Allow third-party taps to include both formulae/casks.
(tap.official? ? changed_files[:modified_formula_files] : []) +
changed_files[:modified_command_files] +
changed_files[:modified_github_actions_files]
)
Expand Down

0 comments on commit 24d8cdf

Please sign in to comment.