Skip to content

Commit

Permalink
CI: fix version extraction from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Sep 7, 2023
1 parent 3ab2351 commit d04d068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Check Tag and setup.py Version Match
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
SETUP_VERSION=$(grep -oE "version='([^']+)" setup.py | grep -oE '[^=]+$')
SETUP_VERSION=$(grep -oE "version='([^']+)" setup.py | grep -oE "[^'=]+$")
if [[ "$TAG_VERSION" != "$SETUP_VERSION" ]]; then
echo "Tag version $TAG_VERSION does not match setup.py version $SETUP_VERSION."
exit 1
Expand Down

0 comments on commit d04d068

Please sign in to comment.