mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 21:40:01 +00:00
fix: Fix rust value extraction.
This commit is contained in:
parent
fbe11a6179
commit
d939750e00
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue