mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Update update-topics.yaml
This commit is contained in:
parent
98e36ffd0e
commit
96103269c7
11
.github/workflows/update-topics.yaml
vendored
11
.github/workflows/update-topics.yaml
vendored
@ -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
Block a user