mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
e1c6513562
commit
c1a2f94e01
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user