From 9329c710b5b44ed76d5755c4002d02a206b9965c Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 10 Feb 2026 19:50:03 -0800 Subject: [PATCH] Require desktop dispatch token in release webhook --- .github/workflows/release-webhook.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-webhook.yml b/.github/workflows/release-webhook.yml index efe230233..18d43f93a 100644 --- a/.github/workflows/release-webhook.yml +++ b/.github/workflows/release-webhook.yml @@ -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."