mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-14 12:32:31 +08:00
Require desktop dispatch token in release webhook
This commit is contained in:
parent
0c4affdf48
commit
9329c710b5
10
.github/workflows/release-webhook.yml
vendored
10
.github/workflows/release-webhook.yml
vendored
@ -110,7 +110,6 @@ jobs:
|
|||||||
echo "✅ Release webhook sent successfully"
|
echo "✅ Release webhook sent successfully"
|
||||||
|
|
||||||
- name: Send repository dispatch to desktop
|
- name: Send repository dispatch to desktop
|
||||||
if: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN != '' }}
|
|
||||||
env:
|
env:
|
||||||
DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }}
|
DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }}
|
||||||
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
||||||
@ -118,6 +117,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
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 \
|
PAYLOAD="$(jq -n \
|
||||||
--arg release_tag "$RELEASE_TAG" \
|
--arg release_tag "$RELEASE_TAG" \
|
||||||
--arg release_url "$RELEASE_URL" \
|
--arg release_url "$RELEASE_URL" \
|
||||||
@ -137,7 +141,3 @@ jobs:
|
|||||||
-d "$PAYLOAD"
|
-d "$PAYLOAD"
|
||||||
|
|
||||||
echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to Comfy-Org/desktop"
|
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."
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user