From c0dffb76d7471f2f92de0fd70bc415105018e24e Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Fri, 5 Jun 2026 22:21:55 -0700 Subject: [PATCH] Update version parsing to support dev versions. Updates version parsing in auto-update-pyrefly.yml to support dev versions (x.y.z.devN) in addition to non-dev versions (x.y.z). --- .github/workflows/auto-update-pyrefly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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