diff options
author | Constantin Nickel <constantin.nickel@gmail.com> | 2023-03-15 23:11:58 +0100 |
---|---|---|
committer | Constantin Nickel <constantin.nickel@gmail.com> | 2023-03-15 23:36:22 +0100 |
commit | 52f6239d2870a71ac7059cde7ea473f28496891a (patch) | |
tree | ffdeb29ec6a4b83672f8c88883e5fbde3aacc08a /.github/workflows | |
parent | 6428125827cf4818974e45e3aa4f8803c0436620 (diff) |
Fix `jq` expression for retrieving `rust-version` in MSRV build job
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/CICD.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 211815f2..a7fc5599 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -43,7 +43,7 @@ jobs: - name: Get the MSRV from the package metadata id: msrv - run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name = "bat").rust_version)' >> $GITHUB_OUTPUT + run: cargo metadata --no-deps --format-version 1 | jq -r '"version=" + (.packages[] | select(.name == "bat")).rust_version' >> $GITHUB_OUTPUT - name: Install rust toolchain (v${{ steps.msrv.outputs.version }}) uses: dtolnay/rust-toolchain@master with: |