Skip to content

Commit 6a88792

Browse files
committed
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 <wagi@kernel.org>
1 parent f90daa1 commit 6a88792

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/libnvme-release-python.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ jobs:
6868
echo "Computed dev version: $VERSION"
6969
7070
- name: Patch project version in meson.build
71+
env:
72+
DEV_VERSION: ${{ steps.version.outputs.dev_version }}
7173
run: |
72-
sed -i -e "/^project(/,/)/ s/^\(\s*\)version:\s*.*/\1version: '${{ steps.version.outputs.dev_version }}',/" meson.build
74+
sed -i -e "/^project(/,/)/ s/^\(\s*\)version:\s*.*/\1version: '${DEV_VERSION}',/" meson.build
7375
7476
- name: Build sdist
7577
run: |

0 commit comments

Comments
 (0)