Fix regex not handling rc versions

This commit is contained in:
Michael Telatynski 2023-07-13 12:30:27 +01:00 committed by GitHub
parent 767c30f2ee
commit 0e97a178e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ jobs:
const releaseTopic = `Stable: ${data.tag_name} | ${RELEASE_STATUS}`;
console.log("Release topic: " + releaseTopic);
const regex = /Stable: v(\d+.\d+.\d+) \| Release status: (\w+) expected (\w+ \d+\w+)/gm;
const regex = /Stable: v(.+) \| Release status: (\w+) expected (\w+ \d+\w\w)gm;
async function updateReleaseInTopic(roomId) {
const apiUrl = `${HS_URL}/_matrix/client/v3/rooms/${roomId}/state/m.room.topic/`;