mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-12-22 15:45:50 +02:00
Format targets conditional more compactly
This commit is contained in:
parent
d872b66ee6
commit
8514966bb2
1 changed files with 1 additions and 3 deletions
|
@ -30,9 +30,7 @@ runs:
|
||||||
- id: flags
|
- id: flags
|
||||||
run: |
|
run: |
|
||||||
: construct rustup command line
|
: construct rustup command line
|
||||||
if [[ -z "$targets" ]]; then
|
if [[ -z "$targets" ]]; then targets=$target; fi
|
||||||
targets="$target"
|
|
||||||
fi
|
|
||||||
echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)"
|
echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)"
|
||||||
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
|
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
|
||||||
echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}"
|
echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}"
|
||||||
|
|
Loading…
Reference in a new issue