From 12bedef2d32b4f987b58454c27037ca7b7ffa0b9 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 11 Apr 2025 08:55:11 +0200 Subject: [PATCH] [ci] Fix release branch matching --- .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 a0896f26..5d97e5e6 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -51,10 +51,10 @@ jobs: with: script: | const branch = context.payload.pull_request.head.ref; - const match = branch.match(/^release-(v\d+\.\d+\.\d+(?:[-\w\.]+)?)$/); + const match = branch.match(/^release-(\d+\.\d+\.\d+(?:[-\w\.]+)?)$/); if (!match) { - core.setFailed(`Branch '${branch}' does not match expected format 'release-vX.Y.Z[-suffix]'`); + core.setFailed(`Branch '${branch}' does not match expected format 'release-X.Y.Z[-suffix]'`); } else { const tag = match[1]; core.setOutput('tag', tag);