From 56909e663349f5c2547884eef716020777308425 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 14 Apr 2024 11:33:35 -0700 Subject: [PATCH] Centralize references to inputs.toolchain to a single spot --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 03aef0d..18a2336 100644 --- a/action.yml +++ b/action.yml @@ -53,7 +53,7 @@ runs: : construct rustup command line echo "targets=$(for t in ${targets//,/ }; do echo -n ' --target' $t; done)" >> $GITHUB_OUTPUT echo "components=$(for c in ${components//,/ }; do echo -n ' --component' $c; done)" >> $GITHUB_OUTPUT - echo "downgrade=${{inputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}" >> $GITHUB_OUTPUT + echo "downgrade=${{steps.parse.outputs.toolchain == 'nightly' && inputs.components && ' --allow-downgrade' || ''}}" >> $GITHUB_OUTPUT env: targets: ${{inputs.targets || inputs.target || ''}} components: ${{inputs.components}}