From 7e858ebcaf8f8b5d350b72ba3ed8a32d325d6281 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Mon, 18 May 2026 06:45:49 -0500 Subject: [PATCH] fix(ci): correct RC tag regex to match dot-separated format The promote-release workflow's tag validation regex rejected valid RC tags like v1.3.0-rc.4 because it expected the format v*.*.*-rc* without a dot separator. Updated the regex to require the dot (rc\.[0-9]+) and fixed the input description example to match. --- .github/workflows/promote-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/promote-release.yml b/.github/workflows/promote-release.yml index c4a6581c7..5512c8be5 100644 --- a/.github/workflows/promote-release.yml +++ b/.github/workflows/promote-release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: rc_tag: - description: "RC tag to promote (e.g., v1.1.0-rc1)" + description: "RC tag to promote (e.g., v1.3.0-rc.1)" required: true type: string @@ -30,7 +30,7 @@ jobs: GH_TOKEN: ${{ steps.app-token.outputs.token }} RC_TAG: ${{ inputs.rc_tag }} run: | - if ! echo "$RC_TAG" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+$'; then + if ! echo "$RC_TAG" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+$'; then echo "::error::Invalid RC tag format: $RC_TAG (expected v*.*.*-rc*)" exit 1 fi