mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 07:59:02 +08:00
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:
parent
3e0b0c1b32
commit
26bb16e26d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user