From 432fcee7b70922926730c3c24310a1c546e72dce Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Fri, 8 Mar 2024 12:50:12 +0800 Subject: [PATCH] Fix the zenoh-dissector version fetching --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea6a01e..f36bdd6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,8 +112,8 @@ jobs: cd - echo "Record zenoh version" - export PKG_VER=$(cargo pkgid | cut -d "#" -f2) command -v jq &> /dev/null || sudo apt install jq -y + export PKG_VER=$(cargo metadata | jq -r '.packages[] | select(.name == "zenoh-dissector") | .version') export ZENOH_VER=$(cargo metadata | jq -r '.packages[] | select(.name == "zenoh-protocol") | .version') envsubst < ${GITHUB_WORKSPACE}/.github/workflows/release-note.md > release-note.md