mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20237 from Homebrew/actionlint_skip_homebrew_brew
style: fix skipping actionlint checks on Homebrew/brew.
This commit is contained in:
commit
370ce002e9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user