From 36422c10e4d85838327aabe1bda73a7ebe62164e Mon Sep 17 00:00:00 2001 From: Jimisola Laursen Date: Fri, 10 Apr 2026 18:18:25 +0200 Subject: [PATCH] fix(ci): update release tag check to support PEP 440 pre-release versions Update the tag format regex to accept all PEP 440 version identifiers: alpha (a), beta (b), release candidate (rc), post-release (.post), and dev releases (.dev), in addition to final releases (1.2.3). Signed-off-by: Jimisola Laursen --- .github/workflows/check_release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_release.yml b/.github/workflows/check_release.yml index ef0c4d6..a896d35 100644 --- a/.github/workflows/check_release.yml +++ b/.github/workflows/check_release.yml @@ -8,8 +8,8 @@ jobs: steps: - name: Check tag format run: | - if ! echo "${{ github.ref }}" | grep -qE '^refs/tags/[0-9]+\.[0-9]+\.[0-9]+'; then - echo "Tag must be a semver version like 1.2.3 (no v prefix)" + if ! echo "${{ github.ref }}" | grep -qE '^refs/tags/[0-9]+(\.[0-9]+)*(a[0-9]+|b[0-9]+|rc[0-9]+)?(\.post[0-9]+)?(\.dev[0-9]+)?$'; then + echo "Tag must be a PEP 440 version like 1.2.3, 1.2.3a1, 1.2.3b2, 1.2.3rc1, 1.2.3.post1 (no v prefix)" exit 1 fi - name: Check branch