diff --git a/Library/Homebrew/extend/kernel.rb b/Library/Homebrew/extend/kernel.rb index 4ca7b2fd34..50484d47de 100644 --- a/Library/Homebrew/extend/kernel.rb +++ b/Library/Homebrew/extend/kernel.rb @@ -64,8 +64,11 @@ module Kernel # @api public sig { params(message: T.any(String, Exception)).void } def opoo(message) + require "utils/github/actions" return if GitHub::Actions.puts_annotation_if_env_set(:warning, message.to_s) + require "utils/formatter" + Tty.with($stderr) do |stderr| stderr.puts Formatter.warning(message, label: "Warning") end