Require desktop dispatch token in release webhook

This commit is contained in:
Benjamin Lu
2026-02-10 19:50:03 -08:00
parent 0c4affdf48
commit 9329c710b5

View File

@@ -110,7 +110,6 @@ jobs:
echo "✅ Release webhook sent successfully"
- name: Send repository dispatch to desktop
if: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN != '' }}
env:
DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
@@ -118,6 +117,11 @@ jobs:
run: |
set -euo pipefail
if [ -z "${DISPATCH_TOKEN:-}" ]; then
echo "::error::DESKTOP_REPO_DISPATCH_TOKEN is required but not set."
exit 1
fi
PAYLOAD="$(jq -n \
--arg release_tag "$RELEASE_TAG" \
--arg release_url "$RELEASE_URL" \
@@ -137,7 +141,3 @@ jobs:
-d "$PAYLOAD"
echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to Comfy-Org/desktop"
- name: Warn when desktop dispatch is not configured
if: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN == '' }}
run: echo "::warning::DESKTOP_REPO_DISPATCH_TOKEN is not set; skipping Comfy-Org/desktop repository_dispatch."