diff --git a/package.json b/package.json index 83cefab..133d7d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moonrepo/setup-rust", - "version": "0.3.2", + "version": "0.3.3", "description": "A GitHub action for setting up Rust and Cargo.", "main": "dist/index.js", "scripts": { diff --git a/src/rust.ts b/src/rust.ts index 6ea6c78..02ddf7f 100644 --- a/src/rust.ts +++ b/src/rust.ts @@ -18,14 +18,16 @@ export async function extractRustVersion(toolchain: string) { }); out.split('\n').forEach((line) => { - const value = line.split(':')[1].trim(); - if (line.startsWith('commit-hash')) { + const value = line.split(':')[1].trim(); + core.setOutput('rust-hash', value); RUST_HASH = value; // version } else if (line.startsWith('release')) { + const value = line.split(':')[1].trim(); + core.setOutput('rust-version', value); RUST_VERSION = value; }