fix(ci): remove redundant workflow_dispatch — push already triggers build
CI / Build & Quality Checks (push) Successful in 10m48s
Trigger Desktop Build / trigger (push) Successful in 10s

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 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 17:59:56 -04:00
parent a9787ef041
commit a30a3d3a47
+1 -13
View File
@@ -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; }