fix target reading logic

This commit is contained in:
Jonatan Czarniecki 2025-06-08 16:26:09 +02:00
parent cbb31f2183
commit 2ed5d9323a
No known key found for this signature in database
GPG key ID: 8B5FB251A803BDD0

View file

@ -23,9 +23,9 @@ runs:
shell: bash shell: bash
run: | run: |
targets=() targets=()
while IFS=',' read -r target while read -r target
do targets+=("--target" "$target") do targets+=("--target" "$target")
done <<< "${{ inputs.targets }}" done < <(tr , '\n' <<<"${{ inputs.targets }}")
declare -p targets > /tmp/targets.sh declare -p targets > /tmp/targets.sh
- name: Check with cargo-fmt - name: Check with cargo-fmt