Skip to content

Commit 5baf537

Browse files
authored
chore(ci): use yq to get rust-version in manifest (#3829)
1 parent 3817a79 commit 5baf537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107

108108
- name: Get MSRV from package metadata
109109
id: msrv
110-
run: grep rust-version Cargo.toml | cut -d'"' -f2 | sed 's/^/version=/' >> $GITHUB_OUTPUT
110+
run: echo "version=$(yq '.package.rust-version' Cargo.toml)" >> $GITHUB_OUTPUT
111111

112112
- name: Install Rust (${{ steps.msrv.outputs.version }})
113113
uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)