13const res = await fetch(`…/dispatches`, {14 method: "POST",21});22if (res.status !== 204) {if (![200, 204].includes(res.status)) {23 throw new Error(`deploy dispatch failed with ${res.status}`);24}
Watching GitHub for changes to the endpoints this code calls.
GitHub changed. workflow_dispatch now answers 200 with a body, not 204.
Line 22 breaks. It only accepts 204, so every successful deploy now throws.
Fixed. A contract test failed before the fix and passes after it. Pull request opened.