From a61cb1a4d0ebb33772da52d8f77d6db66c1a8ed7 Mon Sep 17 00:00:00 2001 From: Joe Sweeney Date: Thu, 25 Jan 2024 11:45:20 -0500 Subject: [PATCH] Set GitHub workflow output correctly Co-authored-by: Bo Anderson --- Library/Homebrew/dev-cmd/pr-pull.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/pr-pull.rb b/Library/Homebrew/dev-cmd/pr-pull.rb index f0af2df1aa..92def55855 100644 --- a/Library/Homebrew/dev-cmd/pr-pull.rb +++ b/Library/Homebrew/dev-cmd/pr-pull.rb @@ -506,7 +506,12 @@ module Homebrew end ensure if args.retain_bottle_dir? - puts "::set-output name=bottle_path::#{dir}" + ohai "Bottle files retained at:", dir + return unless ENV["GITHUB_ACTIONS"] + + File.open(ENV.fetch("GITHUB_OUTPUT"), "a") do |f| + f.puts "bottle_path=#{dir}" + end else FileUtils.remove_entry dir end