From c1a2f94e0132076c2ee3af778bedde752c234102 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 21 May 2025 13:19:11 +0100 Subject: [PATCH] dev-cmd/tap-new: fix root_url warning. Ruby couldn't detect the `root_url` usage inside the ERB template. Instead, use interpolation so it can for a fixed warning and more concise syntax. --- Library/Homebrew/dev-cmd/tap-new.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/tap-new.rb b/Library/Homebrew/dev-cmd/tap-new.rb index 5d04a15c6c..b1b7e5278f 100644 --- a/Library/Homebrew/dev-cmd/tap-new.rb +++ b/Library/Homebrew/dev-cmd/tap-new.rb @@ -126,7 +126,7 @@ module Homebrew echo "::add-mask::${base64_token}" echo "token=${base64_token}" >> "${GITHUB_OUTPUT}" <% end -%> - - run: brew test-bot --only-formulae<% if root_url %> --root-url='<%= root_url %>'<% end %> + - run: brew test-bot --only-formulae#{" --root-url=#{root_url}" if root_url} if: github.event_name == 'pull_request' <% if args.github_packages? -%> env: