style: fix skipping actionlint checks on Homebrew/brew.

If we're running `brew style` on Homebrew/brew: let's ensure that we
don't run the `actionlint` checks as they are handled by the dedicated
`actionlint.yml` workflow.
This commit is contained in:
Mike McQuaid 2025-07-11 13:51:59 +01:00
parent 3e0b0c1b32
commit 26bb16e26d
No known key found for this signature in database

View File

@ -88,6 +88,7 @@ module Homebrew
shfmt_result = files.present? && shell_files.empty?
shfmt_result ||= run_shfmt(shell_files, fix:)
actionlint_files = github_workflow_files if files.blank? && actionlint_files.blank?
has_actionlint_workflow = actionlint_files.any? do |path|
path.to_s.end_with?("/.github/workflows/actionlint.yml")
end