diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f96c027a..9a3e6c6f 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -31,7 +31,7 @@ jobs: - name: Get current version id: current_version run: | - CURRENT_VERSION=$(grep -oP 'version = "\K[^"]+' pyproject.toml) + CURRENT_VERSION=$(grep -oP '^version = "\K[^"]+' pyproject.toml) echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT echo "Current version: $CURRENT_VERSION" @@ -55,4 +55,4 @@ jobs: with: password: ${{ secrets.PYPI_TOKEN }} skip-existing: true - verbose: true \ No newline at end of file + verbose: true