diff --git a/.github/workflows/auto-update-pyrefly.yml b/.github/workflows/auto-update-pyrefly.yml index 112f9fd..b6177f2 100644 --- a/.github/workflows/auto-update-pyrefly.yml +++ b/.github/workflows/auto-update-pyrefly.yml @@ -25,7 +25,7 @@ jobs: id: get-versions run: | # Get current version from pyproject.toml - CURRENT_VERSION=$(grep -oP 'pyrefly==\K[0-9.]+' pyproject.toml) + CURRENT_VERSION=$(grep -oP 'pyrefly==\K[0-9]+\.[0-9]+\.[0-9]+(\.dev[0-9]+)?' pyproject.toml) echo "Current version: $CURRENT_VERSION" echo "current_version=$CURRENT_VERSION" >> $GITHUB_OUTPUT