summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorConstantin Nickel <constantin.nickel@gmail.com>2023-03-15 23:11:58 +0100
committerConstantin Nickel <constantin.nickel@gmail.com>2023-03-15 23:36:22 +0100
commit52f6239d2870a71ac7059cde7ea473f28496891a (patch)
treeffdeb29ec6a4b83672f8c88883e5fbde3aacc08a /.github/workflows
parent6428125827cf4818974e45e3aa4f8803c0436620 (diff)
Fix `jq` expression for retrieving `rust-version` in MSRV build job
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/CICD.yml2
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: