From 8f64aecccb9c1f3424d87b293360da7564625ccf Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 9 Jan 2026 14:06:26 +0100 Subject: [PATCH] build: use proper shell variable expansion ${{ steps.version.outputs.dev_version }} does not get expanded inside a shell script. GitHub Actions expressions are resolved before the step runs, but only in YAML fields, not inside the runtime shell unless you pass them in explicitly. Signed-off-by: Daniel Wagner --- .github/workflows/libnvme-release-python.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/libnvme-release-python.yml b/.github/workflows/libnvme-release-python.yml index 8ee388517c..864ea04451 100644 --- a/.github/workflows/libnvme-release-python.yml +++ b/.github/workflows/libnvme-release-python.yml @@ -68,8 +68,10 @@ jobs: echo "Computed dev version: $VERSION" - name: Patch project version in meson.build + env: + DEV_VERSION: ${{ steps.version.outputs.dev_version }} run: | - sed -i -e "/^project(/,/)/ s/^\(\s*\)version:\s*.*/\1version: '${{ steps.version.outputs.dev_version }}',/" meson.build + sed -i -e "/^project(/,/)/ s/^\(\s*\)version:\s*.*/\1version: '${DEV_VERSION}',/" meson.build - name: Build sdist run: |