From 8fb5bc3133d1009af75bf1169443caa136c41105 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 9 Oct 2021 04:57:39 +0100 Subject: [PATCH] Handle whitespace in comma separated components --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 49264a9..9a00d93 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,9 @@ runs: run: echo "::set-output name=flag::${{inputs.target && ' --target '}}${{inputs.target}}" shell: bash - id: components - run: echo "::set-output name=flag::${{inputs.components && ' --component '}}${{inputs.components}}" + run: echo "::set-output name=flag::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" + env: + components: ${{inputs.components}} shell: bash - name: rustup toolchain install ${{inputs.toolchain}} run: rustup toolchain install ${{inputs.toolchain}}${{steps.target.outputs.flag}}${{steps.components.outputs.flag}} --profile minimal --no-self-update