From d13a1c89a83462551468b30560593cb581653608 Mon Sep 17 00:00:00 2001 From: eitsupi Date: Sat, 29 Jul 2023 06:32:29 +0000 Subject: [PATCH] ci: use yq to parsing toml --- .github/set_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/set_version.sh b/.github/set_version.sh index 3804a9e7c98f..b0b1f1bc1e3b 100755 --- a/.github/set_version.sh +++ b/.github/set_version.sh @@ -2,4 +2,4 @@ # since the caches seem to accumulate cruft over time; # ref https://github.com/PRQL/prql/pull/2407 -grep '^version =' Cargo.toml | tr -d ' "' >> $GITHUB_ENV +echo "version=$(yq '.workspace.package.version' Cargo.toml)" >>"$GITHUB_ENV"