We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b5cca commit dd0f43aCopy full SHA for dd0f43a
src/main.ts
@@ -85,7 +85,9 @@ async function main() {
85
}
86
87
function getLatestRelease(releases: Release[], prefix: string): Release | undefined {
88
- return releases.filter(release => release.tag_name.startsWith(prefix))
+ const regex = new RegExp(`^${prefix}\\d+\\.\\d+\\.\\d+$`);
89
+
90
+ return releases.filter(release => release.tag_name.match(regex) !== null)
91
.sort((a, b) => Date.parse(a.created_at) - Date.parse(b.created_at))
92
.pop();
93
0 commit comments