mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-08 18:05:42 +08:00
ci: Add test for trailing comma in tool input option
This commit is contained in:
@@ -232,4 +232,9 @@ for tool in "${tools[@]}"; do
|
||||
2) list+=$' \t ' ;;
|
||||
esac
|
||||
done
|
||||
if [[ "${comma_sep}" == "1" ]]; then
|
||||
case $((RANDOM % 2)) in
|
||||
0) list+=',' ;;
|
||||
esac
|
||||
fi
|
||||
printf 'tool=%s\n' "${list}"
|
||||
|
||||
Reference in New Issue
Block a user