From f8a47787d00b64800f2161bc2de9b7ea6df087ce Mon Sep 17 00:00:00 2001 From: Chris Logue Linux <17660199+omniscoder@users.noreply.github.com> Date: Mon, 12 Jan 2026 16:23:15 -0500 Subject: [PATCH] ci: fix version parsing in release workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c28ab39..cb78679 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: id: python_version run: | set -euo pipefail - pyv="$(sed -n 's/^version *= *"\\(.*\\)".*/\\1/p' sdk/python/pyproject.toml | head -n1)" + pyv="$(sed -nE 's/^[[:space:]]*version[[:space:]]*=[[:space:]]*\"([^\"]+)\".*/\1/p' sdk/python/pyproject.toml | head -n1)" if [[ -z "${pyv}" ]]; then echo "::error::Could not parse version from sdk/python/pyproject.toml" exit 1 @@ -51,7 +51,7 @@ jobs: id: rust_version run: | set -euo pipefail - rustv="$(sed -n 's/^version *= *"\\(.*\\)".*/\\1/p' sdk/rust/ogn-sdk/Cargo.toml | head -n1)" + rustv="$(sed -nE 's/^[[:space:]]*version[[:space:]]*=[[:space:]]*\"([^\"]+)\".*/\1/p' sdk/rust/ogn-sdk/Cargo.toml | head -n1)" if [[ -z "${rustv}" ]]; then echo "::error::Could not parse version from sdk/rust/ogn-sdk/Cargo.toml" exit 1