mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-14 04:22:31 +08:00
Fix release webhook secret checks in step conditions
This commit is contained in:
parent
8412b5b048
commit
0c4affdf48
8
.github/workflows/release-webhook.yml
vendored
8
.github/workflows/release-webhook.yml
vendored
@ -7,6 +7,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
send-webhook:
|
send-webhook:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
DESKTOP_REPO_DISPATCH_TOKEN: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Send release webhook
|
- name: Send release webhook
|
||||||
env:
|
env:
|
||||||
@ -108,9 +110,9 @@ jobs:
|
|||||||
echo "✅ Release webhook sent successfully"
|
echo "✅ Release webhook sent successfully"
|
||||||
|
|
||||||
- name: Send repository dispatch to desktop
|
- name: Send repository dispatch to desktop
|
||||||
if: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN != '' }}
|
if: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN != '' }}
|
||||||
env:
|
env:
|
||||||
DISPATCH_TOKEN: ${{ secrets.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 }}
|
||||||
RELEASE_URL: ${{ github.event.release.html_url }}
|
RELEASE_URL: ${{ github.event.release.html_url }}
|
||||||
run: |
|
run: |
|
||||||
@ -137,5 +139,5 @@ jobs:
|
|||||||
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
|
- name: Warn when desktop dispatch is not configured
|
||||||
if: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN == '' }}
|
if: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN == '' }}
|
||||||
run: echo "::warning::DESKTOP_REPO_DISPATCH_TOKEN is not set; skipping Comfy-Org/desktop repository_dispatch."
|
run: echo "::warning::DESKTOP_REPO_DISPATCH_TOKEN is not set; skipping Comfy-Org/desktop repository_dispatch."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user