Skip to content

Commit aef3a9d

Browse files
ci: align semantic regex for version update (#429)
Current regex is not matching beta releases - this PR fixes that. Test run: https://github.com/splunk/test-addonfactory-repo/actions/runs/9516876272
1 parent 09237d9 commit aef3a9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.releaserc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
{
4545
"files": ["pyproject.toml"],
46-
"from": "version = \"[0-9]+.[0-9]+.[0-9]+\"",
46+
"from": "version = \"[0-9]+\\.[0-9]+\\.[0-9]+(-[a-zA-Z0-9]+(\\.[0-9]+)*)?\"$",
4747
"to": "version = \"${nextRelease.version}\"",
4848
"results": [
4949
{
@@ -75,4 +75,4 @@
7575
],
7676
["@semantic-release/github", { "assets": ["NOTICE", "pyproject.toml"] }],
7777
],
78-
}
78+
}

0 commit comments

Comments
 (0)