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:
@@ -178,7 +178,7 @@ if [[ -n "$(git ls-files '*.rs')" ]]; then
|
|||||||
publish=$(jq <<<"${root_pkg}" -r '.publish')
|
publish=$(jq <<<"${root_pkg}" -r '.publish')
|
||||||
# Publishing is unrestricted if null, and forbidden if an empty array.
|
# Publishing is unrestricted if null, and forbidden if an empty array.
|
||||||
if [[ "${publish}" != "[]" ]]; then
|
if [[ "${publish}" != "[]" ]]; then
|
||||||
exclude=$(tomlq -r '.package.exclude[]' Cargo.toml)
|
exclude=$(venv tomlq -r '.package.exclude[]' Cargo.toml)
|
||||||
if ! grep <<<"${exclude}" -Eq '^/\.\*$'; then
|
if ! grep <<<"${exclude}" -Eq '^/\.\*$'; then
|
||||||
error "top-level Cargo.toml of non-virtual workspace should have 'exclude' field with \"/.*\""
|
error "top-level Cargo.toml of non-virtual workspace should have 'exclude' field with \"/.*\""
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user