Skip to content

Commit

Permalink
ci: use cargo metadata and jq to extract the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jul 29, 2023
1 parent 35e511d commit 0ebecb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[0].version')" >>"$GITHUB_ENV"

0 comments on commit 0ebecb6

Please sign in to comment.