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.
This commit is contained in:
Mike McQuaid 2025-05-21 13:19:11 +01:00
parent e1c6513562
commit c1a2f94e01
No known key found for this signature in database

View File

@ -126,7 +126,7 @@ module Homebrew
echo "::add-mask::${base64_token}" echo "::add-mask::${base64_token}"
echo "token=${base64_token}" >> "${GITHUB_OUTPUT}" echo "token=${base64_token}" >> "${GITHUB_OUTPUT}"
<% end -%> <% 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: github.event_name == 'pull_request'
<% if args.github_packages? -%> <% if args.github_packages? -%>
env: env: