From e1fb8da2e47c5774be0768ea62f205fbef9860f3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 3 Dec 2025 20:41:52 +0000 Subject: [PATCH] Hopefully fail on no permission or similar errors --- .github/workflows/update-topics.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-topics.yaml b/.github/workflows/update-topics.yaml index 0df11e68a6..bc2d0f722a 100644 --- a/.github/workflows/update-topics.yaml +++ b/.github/workflows/update-topics.yaml @@ -102,9 +102,15 @@ jobs: }); if (res.ok) { - console.log(roomId, "topic updated:", topic); + const resJson = res.json(); + if (resJson.errcode) { + } else { + core.setFailed(`Error updating ${roomId}: ${resJson.error}`); + console.log(roomId, "topic updated:", topic); + } } else { - console.log(roomId, await res.text()); + const errText = await res.text(); + core.setFailed(`Error updating ${roomId}: ${errText}`); } }