Skip to content

Commit 12bedef

Browse files
committed
[ci] Fix release branch matching
1 parent 799690d commit 12bedef

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
@@ -51,10 +51,10 @@ jobs:
5151
with:
5252
script: |
5353
const branch = context.payload.pull_request.head.ref;
54-
const match = branch.match(/^release-(v\d+\.\d+\.\d+(?:[-\w\.]+)?)$/);
54+
const match = branch.match(/^release-(\d+\.\d+\.\d+(?:[-\w\.]+)?)$/);
5555
5656
if (!match) {
57-
core.setFailed(`Branch '${branch}' does not match expected format 'release-vX.Y.Z[-suffix]'`);
57+
core.setFailed(`Branch '${branch}' does not match expected format 'release-X.Y.Z[-suffix]'`);
5858
} else {
5959
const tag = match[1];
6060
core.setOutput('tag', tag);

0 commit comments

Comments
 (0)