From 9903fcec1397e8b8df9b772ab224f1f5d92f9dd4 Mon Sep 17 00:00:00 2001 From: tottoto Date: Mon, 27 Jan 2025 19:49:24 +0900 Subject: [PATCH] chore(ci): use yq to get rust-version in manifest --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 365a11e2..7d8f39fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,9 +78,7 @@ jobs: - name: Get MSRV from package metadata id: metadata - run: | - cargo metadata --no-deps --format-version 1 | - jq -r '"msrv=" + (.packages[] | select(.name == "http")).rust_version' >> $GITHUB_OUTPUT + run: echo "msrv=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT - name: Install Rust (${{ steps.metadata.outputs.msrv }}) uses: dtolnay/rust-toolchain@master