mirror of
https://github.com/actions-rust-lang/msrv.git
synced 2025-12-27 01:43:48 -05:00
fix: read rust_version only if its specified
This commit is contained in:
2
.github/workflows/msrv.yml
vendored
2
.github/workflows/msrv.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
id: read_msrv
|
||||
run: |
|
||||
cargo metadata --format-version=1 \
|
||||
| jq -r 'first(.packages[] | select(.source == null)) | .rust_version' \
|
||||
| jq -r 'first(.packages[] | select(.source == null and .rust_version)) | .rust_version' \
|
||||
| sed -E 's/^1\.([0-9]{2})$/1\.\1\.0/' \
|
||||
| xargs -0 printf "msrv=%s" \
|
||||
| tee /dev/stderr \
|
||||
|
||||
Reference in New Issue
Block a user