mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 04:52:31 +08:00
Dispatch desktop auto-bump on ComfyUI release publish
This commit is contained in:
parent
123a7874a9
commit
8412b5b048
33
.github/workflows/release-webhook.yml
vendored
33
.github/workflows/release-webhook.yml
vendored
@ -106,3 +106,36 @@ jobs:
|
|||||||
--fail --silent --show-error
|
--fail --silent --show-error
|
||||||
|
|
||||||
echo "✅ Release webhook sent successfully"
|
echo "✅ Release webhook sent successfully"
|
||||||
|
|
||||||
|
- name: Send repository dispatch to desktop
|
||||||
|
if: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN != '' }}
|
||||||
|
env:
|
||||||
|
DISPATCH_TOKEN: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN }}
|
||||||
|
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
||||||
|
RELEASE_URL: ${{ github.event.release.html_url }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
PAYLOAD="$(jq -n \
|
||||||
|
--arg release_tag "$RELEASE_TAG" \
|
||||||
|
--arg release_url "$RELEASE_URL" \
|
||||||
|
'{
|
||||||
|
event_type: "comfyui_release_published",
|
||||||
|
client_payload: {
|
||||||
|
release_tag: $release_tag,
|
||||||
|
release_url: $release_url
|
||||||
|
}
|
||||||
|
}')"
|
||||||
|
|
||||||
|
curl -fsSL \
|
||||||
|
-X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer ${DISPATCH_TOKEN}" \
|
||||||
|
https://api.github.com/repos/Comfy-Org/desktop/dispatches \
|
||||||
|
-d "$PAYLOAD"
|
||||||
|
|
||||||
|
echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to Comfy-Org/desktop"
|
||||||
|
|
||||||
|
- name: Warn when desktop dispatch is not configured
|
||||||
|
if: ${{ secrets.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