Skip to content

Commit f379a8a

Browse files
committed
trying to capture the version number correctly from the whl file
1 parent 7ba5d1d commit f379a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: Extract version from Python package
106106
id: get_version
107107
run: |
108-
VERSION=$(ls dist/*.whl | head -n 1 | sed -n 's/.*-\([0-9][^.-]*\).whl/\1/p')
108+
VERSION=$(ls dist/*.whl | head -n 1 | awk -F'-' '{print $2}')
109109
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV
110110
111111
- name: Sign the dists with Sigstore

0 commit comments

Comments
 (0)