mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-18 22:20:03 +00:00
Require desktop dispatch token in release webhook
This commit is contained in:
10
.github/workflows/release-webhook.yml
vendored
10
.github/workflows/release-webhook.yml
vendored
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user