Skip to content

Commit 404bb95

Browse files
committed
Do the fallback from targets to target as a yaml expression
1 parent c9932df commit 404bb95

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ runs:
3030
- id: flags
3131
run: |
3232
: construct rustup command line
33-
if [[ -z "$targets" ]]; then targets=$target; fi
3433
echo "::set-output name=targets::$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)"
3534
echo "::set-output name=components::$(for c in ${components//,/ }; do echo -n ' --component' $c; done)"
3635
echo "::set-output name=downgrade::${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}"
3736
env:
38-
targets: ${{inputs.targets}}
39-
target: ${{inputs.target}}
37+
targets: ${{inputs.targets || input.target || ''}}
4038
components: ${{inputs.components}}
4139
shell: bash
4240

0 commit comments

Comments
 (0)