Skip to content

Commit 6d2ea12

Browse files
committed
[ci] Fix matching tag for release branch
Signed-off-by: Andrei Kvapil <[email protected]>
1 parent 8f575c4 commit 6d2ea12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/pull-requests-release.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ jobs:
5252
script: |
5353
const branch = context.payload.pull_request.head.ref;
5454
const match = branch.match(/^release-(\d+\.\d+\.\d+(?:[-\w\.]+)?)$/);
55-
55+
5656
if (!match) {
5757
core.setFailed(`Branch '${branch}' does not match expected format 'release-X.Y.Z[-suffix]'`);
5858
} else {
59-
const tag = match[1];
59+
const tag = `v${match[1]}`;
6060
core.setOutput('tag', tag);
6161
console.log(`✅ Extracted tag: ${tag}`);
6262
}

0 commit comments

Comments
 (0)