From 7ca8ff0e69ff2d5ed50b1ef0a3a894c1b7ee0f71 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 14 Apr 2025 09:04:57 +0200 Subject: [PATCH] [ci] Fix matching tag for release branch (#805) Signed-off-by: Andrei Kvapil ## Summary by CodeRabbit - **Chores** - Updated the automated release process to format version tags with a "v" prefix for consistent version naming. - Performed minor cleanup to improve overall code clarity. --- .github/workflows/pull-requests-release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-requests-release.yaml b/.github/workflows/pull-requests-release.yaml index 7f9dcd54..790c9188 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -52,11 +52,11 @@ jobs: script: | const branch = context.payload.pull_request.head.ref; const match = branch.match(/^release-(\d+\.\d+\.\d+(?:[-\w\.]+)?)$/); - + if (!match) { core.setFailed(`Branch '${branch}' does not match expected format 'release-X.Y.Z[-suffix]'`); } else { - const tag = match[1]; + const tag = `v${match[1]}`; core.setOutput('tag', tag); console.log(`✅ Extracted tag: ${tag}`); }