mirror of https://github.com/vector-im/riot-web
Update update-topics.yaml
parent
98e36ffd0e
commit
96103269c7
|
@ -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 New Issue