diff --git a/.github/workflows/pypi_release.yml b/.github/workflows/pypi_release.yml index b53d402431..a27e1a5668 100644 --- a/.github/workflows/pypi_release.yml +++ b/.github/workflows/pypi_release.yml @@ -33,7 +33,7 @@ jobs: password: ${{ secrets.PYPI_API_TOKEN }} - name: Set the Version run: | - grep_result=$(grep version pyrogram/__init__.py) + grep_result=$(grep -E '__version__ = ".*"' pyrogram/__init__.py) prefix="__version__ = \"" suffix="\"" final_value=${grep_result#"$prefix"}