mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-21 15:10:27 +00: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 ' ;;
|
2) list+=$' \t ' ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
if [[ "${comma_sep}" == "1" ]]; then
|
||||||
|
case $((RANDOM % 2)) in
|
||||||
|
0) list+=',' ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
printf 'tool=%s\n' "${list}"
|
printf 'tool=%s\n' "${list}"
|
||||||
|
|||||||
Reference in New Issue
Block a user