From a30a3d3a47cad4012960a662062204638fd483a1 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Wed, 10 Jun 2026 17:59:56 -0400 Subject: [PATCH] =?UTF-8?q?fix(ci):=20remove=20redundant=20workflow=5Fdisp?= =?UTF-8?q?atch=20=E2=80=94=20push=20already=20triggers=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit trigger-desktop.yml was pushing a submodule bump commit (which fires release.yml via the push event) AND then explicitly dispatching release.yml via the API, causing every cinny push to produce two back-to-back desktop builds. Drop the dispatch step; the push alone is sufficient. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/trigger-desktop.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.gitea/workflows/trigger-desktop.yml b/.gitea/workflows/trigger-desktop.yml index d82e195d3..1d3bd8912 100644 --- a/.gitea/workflows/trigger-desktop.yml +++ b/.gitea/workflows/trigger-desktop.yml @@ -22,20 +22,8 @@ jobs: git -C cinny checkout "$CINNY_SHA" git add cinny if git diff --cached --quiet; then - echo "Submodule already at $CINNY_SHA" + echo "Submodule already at $CINNY_SHA, nothing to do" else git commit -m "chore: bump cinny submodule to ${CINNY_SHA:0:8}" git push origin main fi - - - name: Dispatch cinny-desktop release build - env: - TOKEN: ${{ secrets.ACTIONS_TOKEN }} - run: | - HTTP=$(curl -s -o /tmp/resp.txt -w "%{http_code}" -X POST \ - "https://code.lotusguild.org/api/v1/repos/LotusGuild/cinny-desktop/actions/workflows/release.yml/dispatches" \ - -H "Authorization: token $TOKEN" \ - -H "Content-Type: application/json" \ - -d '{"ref":"main"}') - echo "HTTP $HTTP: $(cat /tmp/resp.txt)" - [ "$HTTP" = "204" ] || [ "$HTTP" = "200" ] || { echo "Dispatch failed"; exit 1; }