fix(ci): dispatch releases to Comfy-Org/Comfy-Desktop, not the archived repo

The release dispatch target Comfy-Org/desktop was archived on
2026-06-26 and is read-only; the live repo is Comfy-Org/Comfy-Desktop.

Also make the dispatch step independent of the webhook step above it.
The two deliveries are unrelated, but a failure in the first one skips
the second, so the desktop bump never runs when the webhook endpoint is
unhealthy.
This commit is contained in:
bymyself
2026-08-06 20:36:12 -07:00
parent a464ac3358
commit 607f7441d8

View File

@@ -110,8 +110,13 @@ jobs:
echo "✅ Release webhook sent successfully"
- name: Send repository dispatch to desktop
# Runs even if the webhook step above failed: the two deliveries are
# independent, and a failing webhook endpoint must not silently skip
# the desktop release bump.
if: ${{ !cancelled() }}
env:
DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }}
DISPATCH_REPO: Comfy-Org/Comfy-Desktop
RELEASE_TAG: ${{ github.event.release.tag_name }}
RELEASE_URL: ${{ github.event.release.html_url }}
run: |
@@ -138,7 +143,7 @@ jobs:
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DISPATCH_TOKEN}" \
https://api.github.com/repos/Comfy-Org/desktop/dispatches \
"https://api.github.com/repos/${DISPATCH_REPO}/dispatches" \
-d "$PAYLOAD"
echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to Comfy-Org/desktop"
echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to ${DISPATCH_REPO}"