Update update-topics.yaml
parent
98e36ffd0e
commit
96103269c7
|
@ -31,7 +31,7 @@ jobs:
|
|||
PUBLIC_ROOM_ID: "!YTvKGNlinIzlkMTVRl:matrix.org"
|
||||
ANNOUNCEMENT_ROOM_ID: "!bijaLdadorKgNGtHdA:matrix.org"
|
||||
TOKEN: ${{ secrets.BETABOT_ACCESS_TOKEN }}
|
||||
RELEASE_TOPIC: "Stable: v${{ steps.stable.outputs.tag_name }} | Release status: ${{ inputs.expected_status }} expected ${{ inputs.expected_date }}"
|
||||
RELEASE_TOPIC: "Stable: ${{ steps.stable.outputs.tag_name }} | Release status: ${{ inputs.expected_status }} expected ${{ inputs.expected_date }}"
|
||||
with:
|
||||
script: |
|
||||
const { HS_URL, TOKEN, RELEASE_TOPIC, LOBBY_ROOM_ID, PUBLIC_ROOM_ID, ANNOUNCEMENT_ROOM_ID } = process.env;
|
||||
|
@ -56,7 +56,7 @@ jobs:
|
|||
return;
|
||||
}
|
||||
|
||||
await fetch(apiUrl, {
|
||||
const res = await fetch(apiUrl, {
|
||||
method: "PUT",
|
||||
body: {
|
||||
...data,
|
||||
|
@ -64,7 +64,12 @@ jobs:
|
|||
},
|
||||
headers,
|
||||
});
|
||||
console.log(roomId, "topic updated:", topic);
|
||||
|
||||
if (res.ok) {
|
||||
console.log(roomId, "topic updated:", topic);
|
||||
} else {
|
||||
console.log(roomId, await res.text());
|
||||
}
|
||||
}
|
||||
|
||||
await updateReleaseInTopic(LOBBY_ROOM_ID);
|
||||
|
|
Loading…
Reference in New Issue