From 26bb16e26d7692dc9b289b079c2e2019a44cc62e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 11 Jul 2025 13:51:59 +0100 Subject: [PATCH] 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. --- Library/Homebrew/style.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 4973081514..ada047d8e2 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -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