mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 22:50:32 +00:00
tools: Update tidy.sh
This commit is contained in:
@@ -123,7 +123,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
|
pkg=$(jq <<<"${metadata}" ".packages[] | select(.id == ${id})")
|
||||||
publish=$(jq <<<"${pkg}" -r '.publish')
|
publish=$(jq <<<"${pkg}" -r '.publish')
|
||||||
manifest_path=$(jq <<<"${pkg}" -r '.manifest_path')
|
manifest_path=$(jq <<<"${pkg}" -r '.manifest_path')
|
||||||
if ! grep -q '^\[lints\]' "${manifest_path}"; then
|
if ! grep -q '^\[lints\]' "${manifest_path}" && ! grep -q '^\[lints\.rust\]' "${manifest_path}"; then
|
||||||
warn "no [lints] table in ${manifest_path} please add '[lints]' with 'workspace = true'"
|
warn "no [lints] table in ${manifest_path} please add '[lints]' with 'workspace = true'"
|
||||||
fi
|
fi
|
||||||
# Publishing is unrestricted if null, and forbidden if an empty array.
|
# Publishing is unrestricted if null, and forbidden if an empty array.
|
||||||
|
|||||||
Reference in New Issue
Block a user