Hopefully fail on no permission
or similar errors
This commit is contained in:
10
.github/workflows/update-topics.yaml
vendored
10
.github/workflows/update-topics.yaml
vendored
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user