Merge pull request #20237 from Homebrew/actionlint_skip_homebrew_brew

style: fix skipping actionlint checks on Homebrew/brew.
This commit is contained in:
Mike McQuaid 2025-07-11 13:06:52 +00:00 committed by GitHub
commit 370ce002e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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