Skip to content

Commit b5f2843

Browse files
authored
Fix GitHub / Pip package version coherence check (#522)
It now works for pre-releases and for releases as well.
1 parent e71e12a commit b5f2843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
if [[ "${{ matrix.container }}" == "debian13" ]]; then
167167
deactivate
168168
fi
169-
echo ${{ github.ref_name }} | tr -d '-' | rev | sed 's/\.//' | rev | \
169+
echo ${{ github.ref_name }} | tr -d '-' | rev | sed -E 's/\.([^0-9].*)/\1/' | rev | \
170170
grep -wq $PACKAGE_VERSION
171171
if [[ $? -ne 0 ]]
172172
then

0 commit comments

Comments
 (0)