Skip to content

Commit d8f3f2d

Browse files
authored
[ci] Fix matching tag for release branch (#805)
Signed-off-by: Andrei Kvapil <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents d7914ff + 6d2ea12 commit d8f3f2d

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)