From b725d9a99c2c65748c44dcbb5dc0f4de8bf8564c Mon Sep 17 00:00:00 2001 From: kridai Date: Tue, 11 Aug 2026 16:55:15 +0530 Subject: [PATCH] Fix tag validation regex in deploy.yml --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c168a8df..0226eeaf2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -81,11 +81,11 @@ jobs: - name: Validate tag format and version match run: | TAG="${GITHUB_REF#refs/tags/}" - if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+ ]]; then - echo "::error::Release tag must be in the form v1.2.3 (got '$TAG')" + if [[ ! "$TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then + echo "::error::Release tag must be in the form 1.2.3 (got '$TAG')" exit 1 fi - VERSION="${TAG#v}" + VERSION="${TAG#}" PKG_VERSION=$(python setup.py --version) echo "Package version: $PKG_VERSION" echo "PKG_VERSION=$PKG_VERSION" >> "$GITHUB_ENV"