mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-10 07:05:14 +00:00
Update update-topics.yaml
This commit is contained in:
parent
98e36ffd0e
commit
96103269c7
1 changed files with 8 additions and 3 deletions
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"
|
PUBLIC_ROOM_ID: "!YTvKGNlinIzlkMTVRl:matrix.org"
|
||||||
ANNOUNCEMENT_ROOM_ID: "!bijaLdadorKgNGtHdA:matrix.org"
|
ANNOUNCEMENT_ROOM_ID: "!bijaLdadorKgNGtHdA:matrix.org"
|
||||||
TOKEN: ${{ secrets.BETABOT_ACCESS_TOKEN }}
|
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:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const { HS_URL, TOKEN, RELEASE_TOPIC, LOBBY_ROOM_ID, PUBLIC_ROOM_ID, ANNOUNCEMENT_ROOM_ID } = process.env;
|
const { HS_URL, TOKEN, RELEASE_TOPIC, LOBBY_ROOM_ID, PUBLIC_ROOM_ID, ANNOUNCEMENT_ROOM_ID } = process.env;
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await fetch(apiUrl, {
|
const res = await fetch(apiUrl, {
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
body: {
|
body: {
|
||||||
...data,
|
...data,
|
||||||
|
@ -64,7 +64,12 @@ jobs:
|
||||||
},
|
},
|
||||||
headers,
|
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);
|
await updateReleaseInTopic(LOBBY_ROOM_ID);
|
||||||
|
|
Loading…
Reference in a new issue