From 87ac5504bc1000c9091d88a28fc216b3ced2bdf0 Mon Sep 17 00:00:00 2001 From: BD103 <59022059+BD103@users.noreply.github.com> Date: Tue, 22 Apr 2025 09:45:10 -0400 Subject: [PATCH] feat: allow disabling the `rustup default` functionality --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 5281d42..afa528a 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,10 @@ inputs: components: description: Comma-separated list of components to be additionally installed required: false + make-default: + description: Make the installed toolchain the default -- must be 'true' or 'false' + required: false + default: 'true' outputs: cachekey: @@ -81,6 +85,7 @@ runs: - run: rustup default ${{steps.parse.outputs.toolchain}} shell: bash + if: inputs.make-default == 'true' continue-on-error: true # https://github.com/dtolnay/rust-toolchain/issues/127 - id: rustc-version