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."