Skip to content

Commit d04d068

Browse files
Williangalvanipatrickelectric
authored andcommitted
CI: fix version extraction from setup.py
1 parent 3ab2351 commit d04d068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy_to_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Check Tag and setup.py Version Match
2424
run: |
2525
TAG_VERSION=${GITHUB_REF#refs/tags/v}
26-
SETUP_VERSION=$(grep -oE "version='([^']+)" setup.py | grep -oE '[^=]+$')
26+
SETUP_VERSION=$(grep -oE "version='([^']+)" setup.py | grep -oE "[^'=]+$")
2727
if [[ "$TAG_VERSION" != "$SETUP_VERSION" ]]; then
2828
echo "Tag version $TAG_VERSION does not match setup.py version $SETUP_VERSION."
2929
exit 1

0 commit comments

Comments
 (0)