Compare commits

...

6 Commits

Author SHA1 Message Date
Jedrzej Kosinski
b6d1593574 Merge branch 'master' into ben/release-webhook-dispatch-desktop 2026-02-11 10:58:52 -08:00
Jedrzej Kosinski
45df7c8fa5 Merge branch 'master' into ben/release-webhook-dispatch-desktop 2026-02-10 21:57:16 -06:00
Luke Mino-Altherr
53d161b106 Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-10 19:57:00 -08:00
Benjamin Lu
9329c710b5 Require desktop dispatch token in release webhook 2026-02-10 19:50:03 -08:00
Benjamin Lu
0c4affdf48 Fix release webhook secret checks in step conditions 2026-02-10 18:27:26 -08:00
Benjamin Lu
8412b5b048 Dispatch desktop auto-bump on ComfyUI release publish 2026-02-10 14:06:44 -08:00

View File

@@ -7,6 +7,8 @@ on:
jobs:
send-webhook:
runs-on: ubuntu-latest
env:
DESKTOP_REPO_DISPATCH_TOKEN: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN }}
steps:
- name: Send release webhook
env:
@@ -106,3 +108,37 @@ jobs:
--fail --silent --show-error
echo "✅ Release webhook sent successfully"
- name: Send repository dispatch to desktop
env:
DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }}
RELEASE_TAG: ${{ github.event.release.tag_name }}
RELEASE_URL: ${{ github.event.release.html_url }}
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" \
'{
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 "Content-Type: application/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"