From 6d2ea1295e73ddbfd955d12128147f0f17bcd8bc Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 11 Apr 2025 12:41:33 +0200 Subject: [PATCH] [ci] Fix matching tag for release branch Signed-off-by: Andrei Kvapil --- .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 5d97e5e6..49edbba3 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}`); }