From f89a8066919b33227a8589aa2b9e4cfa88ad1691 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Sat, 4 Oct 2025 13:06:57 +0200 Subject: [PATCH] Use the built-in working-directory selector and default to "." if rust-src-dir is not set --- action.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 1f56cd2..edccc6b 100644 --- a/action.yml +++ b/action.yml @@ -211,12 +211,9 @@ runs: - id: versions name: Print installed versions shell: bash - env: - rust_src_dir: ${{inputs.rust-src-dir}} + # Switch to the Rust sub-directory + working-directory: ${{inputs.rust-src-dir || "."}} run: | - # Switch to the selected sub-directory for - cd "$rust_src_dir" - echo "rustc-version=$(rustc --version)" >> $GITHUB_OUTPUT rustc --version --verbose echo "cargo-version=$(cargo --version)" >> $GITHUB_OUTPUT