From 0c4affdf48e0c9dd468ede4329505d6325fd3638 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 10 Feb 2026 18:27:26 -0800 Subject: [PATCH] Fix release webhook secret checks in step conditions --- .github/workflows/release-webhook.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-webhook.yml b/.github/workflows/release-webhook.yml index ca16e2ec4..efe230233 100644 --- a/.github/workflows/release-webhook.yml +++ b/.github/workflows/release-webhook.yml @@ -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: @@ -108,9 +110,9 @@ jobs: echo "✅ Release webhook sent successfully" - name: Send repository dispatch to desktop - if: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN != '' }} + if: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN != '' }} env: - DISPATCH_TOKEN: ${{ secrets.DESKTOP_REPO_DISPATCH_TOKEN }} + DISPATCH_TOKEN: ${{ env.DESKTOP_REPO_DISPATCH_TOKEN }} RELEASE_TAG: ${{ github.event.release.tag_name }} RELEASE_URL: ${{ github.event.release.html_url }} run: | @@ -137,5 +139,5 @@ jobs: echo "✅ Dispatched ComfyUI release ${RELEASE_TAG} to Comfy-Org/desktop" - 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."