Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rustc_hash output #17

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ inputs:

outputs:
version:
description: Version as reported by `rustc --version`
description: Version as reported by `rustc --version`, e.g. "rustc 1.62.0 (a8314ef7d 2022-06-27)"
value: ${{steps.rustc-version.outputs.version}}
rustc_hash:
description: The rustc hash, e.g. "a8314ef7d"
value: ${{steps.rustc-hash.outputs.hash}}

runs:
using: composite
Expand Down Expand Up @@ -50,5 +53,8 @@ runs:
- id: rustc-version
run: echo "::set-output name=version::$(rustc --version)"
shell: bash
- id: rustc-hash
run: echo "::set-output name=hash::$(rustc --version | cut -d'(' -f2 -| cut -d' ' -f1)"
shell: bash
- run: rustc --version
shell: bash