mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 07:00:27 +00:00
Add {typos,wasm-bindgen,wasmtime}-cli aliases
This commit is contained in:
5
main.sh
5
main.sh
@@ -744,10 +744,11 @@ for tool in "${tools[@]}"; do
|
||||
;;
|
||||
*)
|
||||
# Handle aliases.
|
||||
# NB: Update alias list in tools/publish.rs.
|
||||
# NB: Update alias list in tools/publish.rs and tool input option in test-alias in .github/workflows/ci.yml.
|
||||
# TODO(codegen): auto-detect cases where crate name and tool name are different.
|
||||
case "${tool}" in
|
||||
nextest) tool=cargo-nextest ;;
|
||||
taplo-cli) tool=taplo ;;
|
||||
taplo-cli | typos-cli | wasm-bindgen-cli | wasmtime-cli) tool="${tool%-cli}" ;;
|
||||
esac
|
||||
|
||||
# Use cargo-binstall fallback if tool is not available.
|
||||
|
||||
Reference in New Issue
Block a user