Skip to content

Commit a463fb5

Browse files
authored
chore(ci): use yq to get rust-version in manifest (#746)
1 parent 68845bd commit a463fb5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/ci.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ jobs:
7878

7979
- name: Get MSRV from package metadata
8080
id: metadata
81-
run: |
82-
cargo metadata --no-deps --format-version 1 |
83-
jq -r '"msrv=" + (.packages[] | select(.name == "http")).rust_version' >> $GITHUB_OUTPUT
81+
run: echo "msrv=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT
8482

8583
- name: Install Rust (${{ steps.metadata.outputs.msrv }})
8684
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)