mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-25 17:49:31 +01:00
Provide rustc version as a workflow output
This commit is contained in:
parent
6ab2a4a841
commit
1b2f63dd38
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,11 @@ inputs:
|
||||||
description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
description: Rust toolchain specification -- see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
version:
|
||||||
|
description: Version as reported by `rustc --version`
|
||||||
|
value: ${{steps.rustc-version.outputs.version}}
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
@ -15,5 +20,8 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: rustup default ${{inputs.toolchain}}
|
- run: rustup default ${{inputs.toolchain}}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- id: rustc-version
|
||||||
|
run: echo "::set-output name=version::$(rustc --version)"
|
||||||
|
shell: bash
|
||||||
- run: rustc --version
|
- run: rustc --version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue